Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,
I have 3 radio buttons using asp.net these are not in radio button list now i want to select only one radio button at a time and send selected radio button value to some where but i don't want to post back post back i dont know how to use java script for that please help me.
Posted
Updated 13-Apr-12 3:46am
v2

1 solution

use html buttons with runat='server' attribute:
ASP.NET
<input type="radio" id="male" name="group1" runat="server" />
<input type="radio" id="female" name="group1" runat="server" />
<input type="radio" id="in-between" name="group1" runat="server" />


To send it somewhere without using javascript or postback is almost impossible. My advice is learn javascript so that you can use the "onchange" attribute.
 
Share this answer
 

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