在更新面板中未检查已检查的延迟事件 [英] checked chaged event is not firing within update panel

查看:101
本文介绍了在更新面板中未检查已检查的延迟事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有两个具有相同组名的单选按钮.第一次,如果我选择其中任何一个,我都会触发选中的更改事件.如果我再次更改选择,则不会触发检查已更改的事件.两者都在同一更新面板中.

Hi,

I have two radio buttons with the same groupname. First time if I select any one of them i will fire checked changed event. If I change the selection again it is not firing checked changed event.Both are in same update panel.

推荐答案

您提供的信息非常有限,希望您拥有在您的代码中添加了以下内容:

-您可能在ASP.NET应用程序中使用了AJAX,因此请确保已在.aspx文件中添加了ScriptManager.

-为每个控件将Triggers添加到UpdatePanel中,如下所示:
With very limited information that you have provided, hope you have added the following in your code :

- You might be using AJAX in your ASP.NET application, so make sure you have added ScriptManager in the .aspx file.

- Add Triggers to your UpdatePanel for each control like this :
<asp:UpdatePanel ID="myPanel" runat="Server" xmlns:asp="#unknown">
<contenttemplate>
 <!-- Declare your controls here -->
</contenttemplate>
<triggers>
 <asp:AsyncPostBackTrigger ControlID="giveYourControlID" EventName="Checked" />
</triggers>



有了这个,您的事件处理将得到照顾.
希望对您有所帮助!



With this your event handling will be taken care of.
Hope it helped!


控件的AutoPostBack设置为true吗?
Is AutoPostBack set to true for the control?


这篇关于在更新面板中未检查已检查的延迟事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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