radiobuttonlist + textbox
Hi !
I'm trying to create a multiple-choice survey. There are several questions. I use radiobuttonlists and checkboxlists for the answers, but still have a problem with some of them. Actually, here's what I would like to get :
Question : blablablabla?
[] answer 1
[] answer 2
[] other answer : [___________]
How can I add (and is it possible ?) a textbox just right to the last list item ? It doesn't even have to appear dynamically...
Adding it directly into my aspx file doesn't work (I guess a radiobuttonlist control must contain only listitem controls).
I tried a workaround by doing this in codebehind :
myquestion.Items[2].Text = "Other : " + "<input type='text' name='myTextBox'>"
but then I got another problem : when I click into my textbox, wich is part of the list item, it gives focus to the checkbox/radiobutton of this element... and as my textbox loses focus, I can't write anything in it !
Is there any solution, or should I change my form and not use rediobuttonlists ?
Thx by advance !
|