Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

asp.net VB need radio button VALUE when checked.

Posted on 2013-12-13
1
Medium Priority
?
528 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
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…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

971 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