Ajax Calender无法正常工作 [英] Ajax Calender is not working

查看:79
本文介绍了Ajax Calender无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我是ASP.NET AJAX控件的新手.我正在使用Ajax日历扩展器.

这是我的代码:

Hello,
I am new to ASP.NET AJAX controls. I am using an Ajax Calender Extender.

Here my code is:

<asp:TextBox ID="txtMsgDate"  runat="server"></asp:TextBox>
<ajax:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtMsgDate" PopupButtonID="txtMsgDate">
</ajax:CalendarExtender>



日历显示在浏览器中,我也可以选择日期.
我需要将选定的日期插入SQL数据库.我正在从文本框中获取价值.但是,当我单击提交"按钮时,问题出在文本框中的日期为空.

后面的代码必须写任何代码吗?

请帮助我解决此问题.

谢谢.



Calender is displaying in the browser and i can able to select the date also.
What i need is to insert the selected date into the SQL database. I am getting the value from text box. But the problem in when i click on the SUBMIT button, the date in the TEXTBOX is getting empty.

Is there any code have to be wriiten on code behind?

Please help me to fix this issue.

Thanks.

推荐答案

确定您做错了什么.看一下这两个链接并尝试遵循以下示例:
ASP.NET AJAX日历扩展程序–技巧与窍门 [ AJAX日历演示 [
Surely you are doing something wrong. Have a look at these two links and try to follow the examples:
ASP.NET AJAX Calendar Extender – Tips and Tricks[^]
AJAX Calendar Demonstration[^]


这篇关于Ajax Calender无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆