Solved

asp.net VB need radio button VALUE when checked.

Posted on 2013-12-13
1
496 Views
Last Modified: 2013-12-13
I need a method to get the VALUE (not text)  from a checked radiobutton
like these:
I'm using VB:
  <asp:RadioButton id="RadioButton1" Text="" Checked="True"
GroupName="freetx" value="0,0"   Visible="false" runat="server"/>
    <asp:RadioButton id="RadioButton2" Text=" One (1) Free 2nd prize ticket <br />"  
GroupName="freetx" value="1,0"   Visible="false" runat="server"/>
    <asp:RadioButton id="RadioButton3" Text=" Two (2) Free 2nd prize tickets  <br />"

there is a attributeValue that is the actual value when you find the checked radio button,
but I cant get that atributevalue in the code behind.

 I can load the list manually in load event, this data does not come from a datatable.
thanks
0
Comment
Question by:john
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 39716763
You should be able to access it with something like:
Dim val As String = YourRadioButton.Attributes("value")

Open in new window

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now