| Author: vipul 28 Aug 2008 | Member Level: Diamond | Rating: Points: 3 |
hi, for that you do one thing you give any one as checked = true so always one readio button is checked so no need to validate the readio button
vipul, http://dongavipul.blogspot.com
|
| Author: Athira Appukuttan 28 Aug 2008 | Member Level: Diamond | Rating: Points: 4 |
Hi..
function Validation() { if(document.getElementbyId('RadioButtonMale').value=="") { else if(document.getelement('RadioButtonFemale').value=="") { alert("Atlest one should be select"); return false; } } }
<asp:button id="btn" runat="server" onClientclick="return Validation();"/>
|
| Author: Deepa 28 Aug 2008 | Member Level: Diamond | Rating: Points: 2 |
Hi there. u can also use radiobuttonlist instead of two different radio buttons and u can use validation control.
Regards, Deepa.
|