RadioButtonList SelectedValue

Discussion in '.NET' started by thinkmast, May 7, 2006.

  1. thinkmast

    thinkmast

    Joined:
    May 7, 2006
    Messages:
    1
    Location:
    Atlanta,GA
    Hello All:

    i am writing a .NET survey application using C#. There are a series of questions on the webpage with a radiobuttonlist for each question.

    I am now trying to get the values from the database already to display on the radiobuttonlist..i was successful so far by using the code
    rbl_name.SelectedValue=Convert.ToString(sql_select.Parameters["@rbl_name"].Value)

    BUT, if the value in the database is NULL, it is giving an error.

    I want NO radiobutton to be selected IF the value is NULL in the database.

    Thanks,
    Vijay
    thinkmast, May 7, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff
    Replies:
    2
    Views:
    2,290
  2. Arnold

    how to get selectedvalue of radiobuttonlist in Javascript?

    Arnold, Nov 12, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    4
    Views:
    2,218
    Arnold
    Nov 12, 2006
  3. pierre@globalkinetic.net

    Getting SelectedValue from RadioButtonList using javascript

    pierre@globalkinetic.net, Mar 11, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    152
    pierre@globalkinetic.net
    Mar 11, 2005
  4. pierre@globalkinetic.net

    How do I get the SelectedValue from a RadioButtonList using javascript

    pierre@globalkinetic.net, Mar 29, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    188
    nandha
    Mar 29, 2005
  5. Arnold
    Replies:
    6
    Views:
    374
    MikeS
    Nov 12, 2006
Loading...

Share This Page