Rad2.Attributes.Add("onclick","onchange2();"); This is working
perfectly fine.When user clicks the Rad2 radiobutton onchange2();
function gets executed.
but in case i replace this line with
Rad2.Attributes.Add("onchange","onchange2();");
i face the problem. onchange2() function doesnt get executed at all in
case the check of radio button changes.
does anybody has any idea what could be the possible cause?
Even I did something similar in the past and I think that since it is a
RadioButton the Attribute should be "onclick" since this event(onclick)
changes the value of this control and the same is true with CheckBox.
But "onchange" event works for TextBox control.
Try "onchange" with TextBox it should work, but for RadioButton and
CheckBox i think "onclick" is the relevant event.
-Rishabh