473,387 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

radiobuttonlist text property

Jim
How can I set the text property for each button in a radiobutton list? Is
there a property that I can set in code?
Nov 20 '05 #1
5 5086
Hi Jim,

|| How can I set the text property for each button in a
|| radiobutton list? Is there a property that I can set in code?

I'm not sure if you're aware of it, but you've answered yourself in your question!!

RadioButton1.Text = "Me, me, me"

RadioButton2.Text = "No, it's me"

RadioButton3.Text = "No, I'm the one"

Or have I misunderstood?

Regards,
Fergus
Nov 20 '05 #2
Jim
Thanks, but I have a radiobuttonLIST not individual radiobuttons.
Jim
"Fergus Cooney" <fi******@tesco.net> wrote in message
news:e$**************@TK2MSFTNGP09.phx.gbl...
Hi Jim,

|| How can I set the text property for each button in a
|| radiobutton list? Is there a property that I can set in code?

I'm not sure if you're aware of it, but you've answered yourself in your question!!
RadioButton1.Text = "Me, me, me"

RadioButton2.Text = "No, it's me"

RadioButton3.Text = "No, I'm the one"

Or have I misunderstood?

Regards,
Fergus

Nov 20 '05 #3
Hi Jim,

Sorry about that, this is more of a WinForms than Web group so
RadiobuttonList wasn't in my vocabulary (until now) and I took "radiobutton
list" to be a list of... well anyway. :-)

RadiobuttonList is inherited from ListControl.
Both have a property Items which is a ListItemCollection
ListItems have the Text property that you're after.

Unless I'm mistaken again. ;-)

Regards,
Fergus
Nov 20 '05 #4
Cor
Hi Jim,
How can I set the text property for each button in a radiobutton list? Is
there a property that I can set in code?

I'm not sure if you're aware of it, but you've answered yourself in your
question!!
RadioButtonList1.Items(0).Text = "me me me"
RadioButtonList1.Items(1).Text = "No it is me"
RadioButtonList1.Items(2).Text = "No, I'm the one"
Regards
Cor
Nov 20 '05 #5
Hello,

"Jim" <Ji*@Jones6148.freeserve.co.uk> schrieb:
Thanks, but I have a radiobuttonLIST not individual radiobuttons.


Untested: 'MyRadioButtonList.Items(1).Text = "Hello World!"'.

You may want to post to the ASP.NET Web Controls ng:

news://news.microsoft.com/microsoft....et.webcontrols

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hazzard | last post by:
I store radiobuttonlist values in the db using the string value of the radio button item value. (nvarchar) I am creating an edit functionality on the asp.net form so that when I reuse my...
2
by: sramruttun | last post by:
hi I have a checkbox and a radiobuttonlist (the radiobuttonlist contains 2 items) in my form. The radiobuttonlist has its visible property set to false at design time. At run time, when the...
2
by: hellrazor | last post by:
Hi there, I'm successfully streaming a list of items into a radiobuttonlist. I am using an ArrayList as a data source, which I have built from a table of values in a MySQL table. It's working...
5
by: Øyvind Isaksen | last post by:
I'm making a page to update articles. When a radiobuttonlist is displayed, I want the stored value to be displayed as default (checked). Example: I use a procedure to display the...
3
by: Brian | last post by:
Using external XML, I'm trying to build a quiz, but I can't seem to specify the DataSource for the RadioButtonList within a Repeater ItemTemplate. I've tried a number of approaches, but I haven't...
5
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hallo, I have a radiobuttonlist control that is added on a custom Web User Control. This control has a property that exposes the SelectedIndex property of the embedded radiobuttonlist. When...
1
by: staeri | last post by:
I have a RadioButtonList like this: <asp:RadioButtonList ID="lstReportType" runat="server"> <asp:ListItem Selected="True" Value="CompanyCheck">Text 1</asp:ListItem> <asp:ListItem...
6
by: SAL | last post by:
hello, I'm using a radiobuttonlist in an updatepanel in an item template in a Gridview control. I'm populating the radiobuttonlist in the RowDataBound event. I have the control toolkit registered...
1
by: renuami | last post by:
Hello friends please advise....... I am building an application for Survey. For this i have GridView with two Template fields. The first Template has Label (To display question text) and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.