troubleshooting Question

How to make OnClientClick event for Radio List

Avatar of minglelinch
minglelinch asked on
.NET ProgrammingC#ASP.NET
15 Comments1 Solution4085 ViewsLast Modified:
I have a group of radio buttons defined as below. I'm trying to add OnClientClick event for each radio button, but it won't work at all. It seems that the radio button list does not have a OnClientClick event. How can I make a handler for OnClientClick on each radio button? I only need to make hide fields show. Thanks.

<asp:Panel ID="pldev" runat="server" GroupingText="Choose a Type" Width="370px">
&nbsp;<asp:RadioButton id="type1" Text="Pager" GroupName="device" AutoPostBack="true" OnCheckedChanged="DevSelected" runat="server" />
&nbsp;<asp:RadioButton id="type2" Text="Cell Phone" GroupName="device" AutoPostBack="true" OnCheckedChanged="DevSelected" runat="server" />
&nbsp;<asp:RadioButton id="type3" Text="Landline" GroupName="device" AutoPostBack="true" OnCheckedChanged="DevSelected" runat="server" />
&nbsp;<asp:RadioButton id="type4" Text="Air Card" GroupName="device" AutoPostBack="true" OnCheckedChanged="DevSelected" runat="server" />
</asp:Panel>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 15 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 15 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros