AJAX CALENDAR EXTENDER - BINDING NULL TO TEXT AS SELECTED DATE

marcel ethan

Total Post:105

Points:735
Posted by  marcel ethan
 1170  View(s)
Ratings:
Rate this:

I have an AJAX Calendar Extender inside an ASP.NET Repeater, which binds date data from a table and allows users to change this. I have an issue however - if the date is null, it returns an error as it cannot bind null as a selected date. Are there any ways around this?

  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: AJAX Calendar Extender - binding null to text as selected date

    Hi Marcel, 


    Sort of worked around the issue for anyone else having problems - don't set the selected value in the ASP.NET code, set it when the row is bound in the code behind, so you bind only if it's not null.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!