Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

asp.net VB need radio button VALUE when checked.

Posted on 2013-12-13
1
Medium Priority
?
521 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
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 this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

715 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