i need to display a list of strings to a user. the user can select multiple strings. if a specific set of strings is selected a textbox will appear next to each string.
what i want to do is show the user a TREEVIEW with each node being one of the strings. they will select every string they want by checking the box.
the problem:
if the user selects specific checkboxes i need a textbox to appear to GET input from the user.
question: how do i get string input from the user with a treeview?
A TreeView does not support including TextBoxes natively. You could use a JavaScript solution where you create client side text boxes and serialize the value mapping to an
<asp:HiddenField />.Set up your TreeView and HiddenField:
Some jQuery:
Some C#:
Untested, but hopefully a helpful start.