Custom Item in CheckBoxList

D

dancer

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.
 
M

Masudur

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top