Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RadioButtonList SelectedValue

Reply
Thread Tools

RadioButtonList SelectedValue

 
 
thinkmast thinkmast is offline
Junior Member
Join Date: May 2006
Location: Atlanta,GA
Posts: 1
 
      05-07-2006
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble converting RadioButtonList.SelectedValue into a string Jeff ASP .Net 2 10-08-2008 12:45 AM
how to get selectedvalue of radiobuttonlist in Javascript? Arnold ASP .Net Web Controls 6 11-12-2006 05:36 PM
how to get selectedvalue of radiobuttonlist in Javascript? Arnold ASP .Net Datagrid Control 4 11-12-2006 03:24 PM
How do I get the SelectedValue from a RadioButtonList using javascript pierre@globalkinetic.net ASP .Net Web Controls 1 03-29-2005 02:34 PM
Getting SelectedValue from RadioButtonList using javascript pierre@globalkinetic.net ASP .Net Web Controls 0 03-11-2005 11:05 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57