473,385 Members | 1,337 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,385 software developers and data experts.

Custom Item in CheckBoxList

Using VB2005 and Asp.net

I have a CheckBoxList. One of the items needs to be user-defined. Is it
possible to put a text box WITHIN a CheckBoxlist?

Meaning - if the user checks "Other" he would also type his definition of
other.
May 18 '07 #1
3 2197
On May 19, 4:48 am, "dancer" <dan...@microsoft.comwrote:
Using VB2005 and Asp.net

I have a CheckBoxList. One of the items needs to be user-defined. Is it
possible to put a text box WITHIN a CheckBoxlist?

Meaning - if the user checks "Other" he would also type his definition of
other.
Hi....
here it goes

for (int i = 0; i < 15; i++)
{
if( (i%2) == 0)
CheckBoxList1.Items.Add(@"<input type='text'
value='yahoo' onClick=""return false;""></input>");
else
CheckBoxList1.Items.Add(i.ToString());
}
Thanks
Masudur

May 19 '07 #2
Thank you. Could you put that in VB.net? I don't know how to read that
language.
"Masudur" <mu*****@gmail.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
On May 19, 4:48 am, "dancer" <dan...@microsoft.comwrote:
>Using VB2005 and Asp.net

I have a CheckBoxList. One of the items needs to be user-defined. Is it
possible to put a text box WITHIN a CheckBoxlist?

Meaning - if the user checks "Other" he would also type his definition
of
other.

Hi....
here it goes

for (int i = 0; i < 15; i++)
{
if( (i%2) == 0)
CheckBoxList1.Items.Add(@"<input type='text'
value='yahoo' onClick=""return false;""></input>");
else
CheckBoxList1.Items.Add(i.ToString());
}
Thanks
Masudur

May 20 '07 #3
Thank you! Could you put that in VB.net? I can't read that language.
"Masudur" <mu*****@gmail.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
On May 19, 4:48 am, "dancer" <dan...@microsoft.comwrote:
>Using VB2005 and Asp.net

I have a CheckBoxList. One of the items needs to be user-defined. Is it
possible to put a text box WITHIN a CheckBoxlist?

Meaning - if the user checks "Other" he would also type his definition
of
other.

Hi....
here it goes

for (int i = 0; i < 15; i++)
{
if( (i%2) == 0)
CheckBoxList1.Items.Add(@"<input type='text'
value='yahoo' onClick=""return false;""></input>");
else
CheckBoxList1.Items.Add(i.ToString());
}
Thanks
Masudur

May 20 '07 #4

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

Similar topics

1
by: Itai | last post by:
I am attempting to create an ASP.NET Custom Validator javascript for a checkboxlist control. My goal is to limit the total number of selections to be 1 - 5 at most. My problem is that I get a null...
2
by: Itai | last post by:
I am attempting to create an ASP.NET Custom Validator javascript for a checkboxlist control. My goal is to limit the total number of selections to be 1 - 5 at most. My problem is that I get a null...
0
by: Itai | last post by:
I am attempting to create a Custom Validator client script for a checkboxlist control. My goal is to limit the total number of selections to be 1 - 5 at most. My problem is that I get a null...
5
by: Patrick.O.Ige | last post by:
I'm binding a CheckBoxlist below in the ItemDataBound(the CheckBoxList is in a Datalist) By doing "li.Selected = True" i can see all the checkBoxes are selected. But what i want is to be able...
0
by: webmaster | last post by:
Hi all, I'm tearing my hair out with this one. I have successfully implemented by own RadioButtonList in order to provide additional functionality and a DIV rather than TABLE-based layout in...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.