Design:
<asp:radiobuttonlist id="rblGender" runat="server">
<asp:listitem text="Male"/>
<asp:listitem text="FeMale"/>
<asp:Radiobuttonlist>
Javascript:
function ShowSelectedGender()
{
var Gen=document.getelementbyid("rblGender");
for(var k=0;i<Gen.cells.length;k++)
{
if(Gen.cells[k].firstChild.checked)
{
alert("You've selected Gender is:"+Gen.cells[k].firstChild.value);
}
}
}
.cs
page Load call Javascript
{
btnsubmit.attribure.add("onClick","ShowSelectedGender()");
}