RadioButton not firing CheckChanged
-
I have created 5 RadioButtons dynamically on 5 place holders They are created on the click on another button i.e. not on the PageLoad event I have added a handler for each of them like:
rad1.CheckedChanged += new EventHandler(rad_CheckedChanged); rad2.CheckedChanged += new EventHandler(rad_CheckedChanged); ...
Same event handler for all The controls render fine, but when I check them all the control disappear and the checkedchanged event is not fired. I read somewhere that they need to be created on the pageload event. But the need to be created on an event after the pageload. plz hlp._____________________________________________________ Yea! I could be wrong...
-
I have created 5 RadioButtons dynamically on 5 place holders They are created on the click on another button i.e. not on the PageLoad event I have added a handler for each of them like:
rad1.CheckedChanged += new EventHandler(rad_CheckedChanged); rad2.CheckedChanged += new EventHandler(rad_CheckedChanged); ...
Same event handler for all The controls render fine, but when I check them all the control disappear and the checkedchanged event is not fired. I read somewhere that they need to be created on the pageload event. But the need to be created on an event after the pageload. plz hlp._____________________________________________________ Yea! I could be wrong...
If you are adding the controls dynamically you will need to re-add the control in the Page_init. Refer to this http://geekswithblogs.net/shahed/archive/2008/06/26/123391.aspx[^] for more information.
I didn't get any requirements for the signature