Solved

asp.net VB need radio button VALUE when checked.

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

626 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