问题描述
亲爱的所有人,
我在我的项目中使用CalendarExtender,但无法正常工作.我添加了最新的AjaxToolKit.dll.
主页上有一个ToolkitScriptManager.
Dear All,
I am using CalendarExtender in my project.But It is not working. I have added latest AjaxToolKit.dll.
there is a ToolkitScriptManager in master page.
<cc1:ToolkitScriptManager ID="ScriptManager" runat="server"></cc1:ToolkitScriptManager>
和dll像这样在web.config中注册:
and dll registerd in web.config like this:
<add assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagPrefix="cc1" />
这是代码Spinet:
Here is code spinet:
<asp:TextBox ID="txtdtofRegi" runat="server" CssClass="input_text"></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender1" EnabledOnClient="true" runat="server"
TargetControlID="txtdtofRegi" PopupButtonID="txtdtofRegi" Format="MMMM d, yyyy">
</cc1:CalendarExtender>
我也下载了controltoolkit的示例项目.但其控件也不起作用.
当我单击文本框中的calendarExtender时,它不显示日历.
我已经在Mozilla Firefox 5.0和IE 6中尝试过
我没问题.请,请帮助我.
谢谢..
also I downloaded sample project of controltoolkit. but its controls also not working.
when I clicked for calendarExtender in textbox it not show calendar.
I have tried in Mozilla Firefox 5.0 and IE 6
I am not getting problem. please and please help me..
Thanks..
推荐答案
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
3-像这样添加压延剂:
3- Add the calender extender like this one :
<cc1:CalendarExtender ID="txt_NewsDate_CalendarExtender" runat="server" TargetControlID="txt_NewsDate">
</cc1:CalendarExtender>
4不要忘了添加此内容:
4-Dont Forget to add this :
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
祝你好运.
Good Luck.
这篇关于AjaxControlToolkit控件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!