Simple radio button question

2 posts, 0 answers
  1. Najid Hanif
    Najid Hanif avatar
    92 posts
    Member since:
    Jul 2011

    Posted 26 Oct 2011 Link to this post

    How do I get the value (What radio button is currently selected) for a group of radio buttons from CS code behind?

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Oct 2011 Link to this post

    Hello Najid,

    You can set the AutoPostBack as true and try the following .

    protected void Page_Load(object sender, EventArgs e)
       string s = RadioButtonList1.SelectedValue;

  3. DevCraft R3 2016 release webinar banner
Back to Top