Solved

asp.net VB need radio button VALUE when checked.

Posted on 2013-12-13
1
510 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 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