简体   繁体   English

AJAX Calendar Extender-将空绑定到文本作为选定日期

[英]AJAX Calendar Extender - binding null to text as selected date

I have an AJAX Calendar Extender inside an ASP.NET Repeater, which binds date data from a table and allows users to change this. 我在ASP.NET Repeater中有一个AJAX Calendar Extender,它可以绑定表中的日期数据并允许用户更改它。 I have an issue however - if the date is null, it returns an error as it cannot bind null as a selected date. 但是,我有一个问题-如果日期为null,则它将返回错误,因为它不能将null绑定为所选日期。 Are there any ways around this? 有什么办法解决吗?

Thanks 谢谢

对于有其他问题的任何人,都可以解决该问题-不要在ASP.NET代码中设置选定的值,而是在行与后面的代码绑定在一起时进行设置,因此仅在不为null时进行绑定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM