TextBox与CalendarExtender配合使用出现 Sys.ArgumentOutOfRangeException: 值必须为整数。
<asp:TextBox ID="tBoxDate" runat="server"></asp:TextBox>当点击textbox文本框里应该弹出日历的,可是会出现如上错误 textbox 日历 Ajax --------------------编程问答-------------------- 原来是浏览器兼容性问题,,,,怎么搞。 客户端访问会自动提示选择兼容性吗? --------------------编程问答-------------------- 居然没人知道 --------------------编程问答-------------------- 你的Type类型是number类型当然只能为整数了,你Type改为string 不就行了! --------------------编程问答-------------------- 是那个textbox的type还是日历控件的type? --------------------编程问答--------------------
<ajax:CalendarExtender ID="ce1" CssClass="MyCalendar" runat="server" TargetControlID="tBoxDate" Format="yyyy-MM-dd" PopupButtonID="tBoxDate"></ajax:CalendarExtender>
没看见你的number后面的Integer属性是True;这就意味着必须是整数,你改为ale,就可以了 --------------------编程问答-------------------- 这个日历代码都是封装在DLL里的,只有编译出错才显示,改不了。
补充:.NET技术 , ASP.NET