DropDownList in TreeViewv (Urgent)

K

Kevin

Hi all,

I got a problem about TreeView, I would like to create a
dropdownlist in treeview as a treenode. I've tried the
using following code

TreeView testTree = new TreeView();
TreeNode testNode = new TreeNode();
testNode.Text="<select size=\"1\" name=\"C5_7\" ><option
value=\"test\" selected>Basic</option><option
value=\"test22\">Basic1</option></select>";

the above code will show a dropdownlist in the treeview.

For now my problem is I was unable to get the value of
dropdownlist. Please note that I've try to use
HttpContext.Current.Request["C5_7"], but it doesn't work.
If I did't put dropdownlist in the treeview, but page. I
was able to get the value of dropdownlist by
HttpContext.Current.Request.["C5_7"].

Hope you can give me some suggestions about it. Any
suggestions will be appreciated.
 

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
474,263
Messages
2,571,062
Members
48,769
Latest member
Clifft

Latest Threads

Top