开发者

AJAX Calendar Extender - binding null to text as selected date

开发者 https://www.devze.com 2023-02-05 13:40 出处:网络
I have an AJAX Calendar Extender inside an ASP.NET Repeater, which binds 开发者_JS百科date data from a table and allows users to change this. I have an issue however - if the date is null, it returns

I have an AJAX Calendar Extender inside an ASP.NET Repeater, which binds 开发者_JS百科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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消