Ajax控件不起作用 [英] Ajax Controls not working

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

问题描述

大家好..

我在页面中使用了Ajax扩展控件,但是大多数conytrols在运行时无法正常工作.
例如:

Hi All..

I am using the Ajax Extention Control in my pages, but most of the conytrols are not working at runtime.
For Example:

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<cc1:CalendarExtender ID="CalendarExtender1" runat="server"

TargetControlID="TextBox1">
</cc1:CalendarExtender>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>


对于此CalendarExtender控件,运行时我的页面上没有显示日历.

请告诉我如何解决这个问题?我需要更改一些设置吗?
我正在使用Windows XP和VS2008.
我需要.NET Framework 3.5 sp1吗?

在此先感谢.

问候
Nikhil


For this CalendarExtender control, no calender is displaying in my page at run time.

Please tell me how to solve this problem? Do i need to change some setting?
I am using windows XP ,VS 2008.
Do i need .NET framework 3.5 sp1 ?

Thanks In Advance.

Regards
Nikhil

推荐答案

如果您使用的是最新的控制工具套件,则需要.net framework 3.5 sp1.升级您的框架,然后尝试.它应该可以工作
If you are using latest control tool kit then you need .net framework 3.5 sp1. Upgrade you framework then try. It should work


要使用Ajax控件,需要在页面本身或配置文件中注册控件.

而且日历也不会直接在页面中显示.当您单击文本框时,将显示此日历.
如果要通过单击图像来使用或调用此日历,则还需要将此图像与控件关联.

希望这会对您有所帮助.
To use Ajax controls to need to register the controls in the page itself or in the config file.

And also the calendar will not be visible in the page directly. when you click on the textbox, then this calendar will be displayed.
if you want to use or invoke this calendar by clicking on a image, then you need to associate this image also with the control.

Hope this will help you.


请执行此操作,它将起作用

Hi Please do this, it will work

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender1" runat="server"

TargetControlID="TextBox1">
</cc1:CalendarExtender>





如需更多帮助,请参见
上的教程 http://www.asp.net/ajaxlibrary/act_Calendar_Simple.ashx [





For More help see the tutorials at
http://www.asp.net/ajaxlibrary/act_Calendar_Simple.ashx[^]



Regards,
Jojo Lili


这篇关于Ajax控件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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