Capturing IE WebControl DropDownList SelectedIndex Value

M

M728

Hi,
I have an IE Webcontrol Toolbar with the following three controls:
Textbox control, a DropDownList control, and a Button control. I have
no problem capturing the text from the textbox control, but my problem
is that every time I select an item from the DropDownList, the
SelectedIndex always remains 0. Since it is always 0,
onSelectedIndexChanged never fires.
I have all the DropDownList items hardcoded in design time so nothing
gets generated dynamically.
Does anyone know why SelectedIndex always remains 0?
 
M

M728

I tried that, using the following code:
CType(sender,
Microsoft.Web.UI.WebControls.ToolbarDropDownList).SelectedItem.ToString

but the SelectedItem never changes, it always points to the first item
in the DropDownList regardless of the item that was selected by the
user.
 
M

M728

I thought I had done what you suggested, but I guess I misunderstood
your post. Can you show me an example of what you mean? Thanks for the
help. I appreciate it.
 

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,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top