?
Solved

It possible to give a radiobutton two values

Posted on 2008-10-01
4
Medium Priority
?
248 Views
Last Modified: 2013-11-07
Hi,
I have a radiobutton list which I populate by a XML file into a dataset then populate the radiobutton list from the dataset

rbtnList. DataTextField = "text"
rbtnList.DataValueField = "Value"

but I want to add a third column and call it later Is this possible and if so how would I do it.
0
Comment
Question by:niall29
[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
  • 2
  • 2
4 Comments
 
LVL 20

Expert Comment

by:informaniac
ID: 22613434
Not possible.

Why exactly are you looking for a third column?
0
 

Author Comment

by:niall29
ID: 22613465
I have a text field which obviously is the display on the radio button list
I have a value field which is an int which is saved to the Db as what type of letter was sent
but now I want another value to tell it where to get the necessary data
0
 
LVL 20

Accepted Solution

by:
informaniac earned 200 total points
ID: 22613485
when u r fetching the data

select valueFieldCol1 + '$' + valueFieldCol2 as valueField,textfield from tblName

Now when u r sending to the d/b u could something like this

for int field send rbList.SelectedValue.Split('$')[0];

and for the other send rbList.SelectedValue.Split('$')[1];

if u r using xml then $ won't work, replace it something else
0
 

Author Closing Comment

by:niall29
ID: 31501930
I like that idea, sometimes the answer is staring you in the face.
Thanks
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

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…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

762 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