G
Guest
Hi
I'm trying to create some JS to enable/disable some form elements when a
radio button grp is set to a certain option.
However, the Attributes.Add method does nothing...
html..
<asp:radio button id="rdoOption1" runat="server" GroupName="ioptions" />
c# page_load..
rdoOption1.Attributes.Add("onchange", "javascript:changeoption");
The rdoOption1 is declared as protected
System.Web.UI.WebControls.RadioButton. However, it creates no code. When I
look at the HTML, there is no mention of the onchange event.
What's missing?
Cheers
Dan
I'm trying to create some JS to enable/disable some form elements when a
radio button grp is set to a certain option.
However, the Attributes.Add method does nothing...
html..
<asp:radio button id="rdoOption1" runat="server" GroupName="ioptions" />
c# page_load..
rdoOption1.Attributes.Add("onchange", "javascript:changeoption");
The rdoOption1 is declared as protected
System.Web.UI.WebControls.RadioButton. However, it creates no code. When I
look at the HTML, there is no mention of the onchange event.
What's missing?
Cheers
Dan