Click here to Skip to main content
11,584,040 members (62,801 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Javascript
<asp:RadioButtonList runat="server" ID="rbgender">
                                <asp:ListItem Value="0" >Male</asp:ListItem>
                                <asp:ListItem Value="1">Female</asp:ListItem>
                            </asp:RadioButtonList>


How to perform javascript validation for above radiobutton list control
Posted 8-Dec-10 19:08pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

What about search engines? where is your script?

Try this[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

try this.............



<script language="javascript" type="text/javascript">
    function validate()
    {
    if (document.getElementById("RadioButtonList1").checked==false)
    {
    var answer = confirm ("Please confirm selection...")
    if (answer)
    return true;
    else
    return false;
    }
    return true;
    }
    </script>
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 480
1 Sergey Alexandrovich Kryukov 285
2 virusstorm 268
3 Dave Kreskowiak 230
4 Richard Deeming 220
0 OriginalGriff 1,523
1 Sergey Alexandrovich Kryukov 995
2 Abhinav S 696
3 Dave Kreskowiak 621
4 Suvendu Shekhar Giri 568


Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 1 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100