DropdownList in EditItemTemplate

R

randy

I have a template column and a DropdownList in the EditTemplateItem area. I
can't find a way to bind a datatable to it when EditItemIndex is set...HELP

After the user clicks Update the following code should work...

dim cbo as DropdownList

cbo = ctype(e.Item.FindControl("Dropdown1"), DropdownList)
debug.write(cbo.selectedvalue)

right?

Many Thanks,

-Randy
 
K

Kilic Beg

I used the ID of the dropdown to get the selectedvalue..
strKey = "<IDofDropdown>";
strSelectedvalue = Request.Form[strKey].Trim();
 

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,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top