|
Subject:
|
How do I display values in commas in a textbox or
|
|
Posted By:
|
anilm001
|
Post Date:
|
10/5/2005 1:16:09 AM
|
I have a query , i have a checkedlist box in a session and it fetches data from a table. when I try to access the checked items in the next page, I get only the first checked value. I need to get the checked values in this format Name1,Name2,Name3 I need the commas in my textbox or label control. Can u please send me a code snippet. Thanks Best Regards Anil Mahadev http://anilm001.myfreewebs.net
{
Enterprise Data Management Expertise shall be my Goal towards a
Successful Career
}
|
|
Reply By:
|
jbenson001
|
Reply Date:
|
10/6/2005 12:28:41 AM
|
TextBox1.Text = "" Dim i As Integer For i = 0 To CheckBoxList1.Items.Count - 1
If CheckBoxList1.Items(i).Selected Then If TextBox1.Text = "" Then TextBox1.Text = TextBox1.Text + CheckBoxList1.Items(i).Text Else TextBox1.Text = TextBox1.Text + "," + CheckBoxList1.Items(i).Text End If End If Next
|