Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2087
  • Last Modified:

Get value of selected item of a Radio Button List - ASPxRadioButtonList

How do I get the value of the selected radio button of a Radio Button List? I am using the DevExpress tool - ASPxRadioButtonList.
0
thinklings
Asked:
thinklings
  • 2
1 Solution
 
thinklingsAuthor Commented:
I am using the following code although get an empty string passed -

string rbOptionSV = rbOption.SelectedItem.ValueString;

Open in new window


I have also ensured all values of each listed item is set.
0
 
thinklingsAuthor Commented:
I changed my code to the below and it worked:

string rbOptionSV = rbOption.SelectedItem.Value.ToString();

Open in new window

0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now