Click here to Skip to main content
16,022,417 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 13-Oct-22 1:45am

Is AutoPostBack set to true for the control?
 
Share this answer
 
Comments
dhilip mca 12-Apr-11 10:32am    
Yes I tried. But, samething.
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!
 
Share this answer
 
v2
Comments
dhilip mca 12-Apr-11 9:55am    
Thanks. But, it dint work for me.
Yes I am using Ajax.
I have two radiobutton Yes and No.Both are in same groupname. If I click Yes first the checkedchanged event will be fired.If I click No after Yes it will not be fired and I am getting error saying that View state is invalid.
It is happening only in Chrome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900