Ajax工具包日历扩展器 [英] Ajax Toolkit Calendar Extender

查看:57
本文介绍了Ajax工具包日历扩展器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在asp.net页面中使用Ajax日历扩展程序.

我用下面的代码...

我有一个包含TEXTBOX,图像按钮的表

I want to use Ajax Calendar extender in asp.net page.

I used the below code...

i have a table that contains a TEXTBOX,an IMAGE BUTTON

<td>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
 <asp:TextBox ID="TextBox11" runat="server" CssClass="textbox"></asp:TextBox>
<asp:ImageButton ID="ImageButton1" runat="server" Height="19px" ImageUrl="~/Calendar_scheduleHS.png" Width="20px" OnClick="ImageButton1_Click"/>
<cc1:CalendarExtender id="CalendarExtender1" runat="server" Format="MM/dd/yyyy" PopupButtonID="ImageButton1" TargetControlID="TextBox11"></cc1:CalendarExtender>
</td>






我需要的是,当我单击图像按钮时,将显示ajax日历,而当我单击日历时,该日历将关闭.

当我使用上面的代码时,页面正在加载,但没有任何反应.

请帮助我做到这一点.....
请给我确切的方法





谢谢你
Kishore R






My need is when i clicked on the image button,the ajax calendar will show and when i clicked on the calendar,the same will close.

When i use the above code,the page is loading,but nothing is happening.

Kindly help me to do this.....
please give me the exact way to do it





Thanking you
Kishore R

推荐答案

而不是ScriptManager,请使用ToolScriptManager.

否则,您的代码是正确的.它在我这边工作.如果仍然出现错误,可以指定确切的错误.
Instead of ScriptManager use ToolScriptManager.

Else Your code is correct. It''s working on my side. If still you get an error can you specify exact error.


Scriptmanager,是的.

UpdatePanel,不,除非您需要其他功能.

您应该在页面上没有脚本管理器的情况下遇到编译错误.
Scriptmanager, yes.

UpdatePanel, no, unless you need it for something else.

You should be getting compile errors without the scriptmanager on the page.


如果您使用的是工具包的较早版本,则图像"按钮会回发.不确定这是您的问题,但最好使用html图像控件.

有关更多信息,请在此处 [
If you are using earlier version of the toolkit Image button would post back. Not sure this is your problem but better to use a html image control.

For more check here[^]


这篇关于Ajax工具包日历扩展器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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