Home > DeveloperSection > Forums > AJAX Calendar Extender - binding null to text as selected date
Royce Roy
Royce Roy

Total Post:134

Points:938
Posted on    August-26-2014 2:43 AM

 ASP.Net
Ratings:


 1 Reply(s)
 732  View(s)
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?

Thanks



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    August-26-2014 5:12 AM

Hi Royce, 

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.


Don't want to miss updates? Please click the below button!

Follow MindStick