Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drop down events 1

Status
Not open for further replies.

Zarcom

Programmer
May 7, 2002
1,275
CA
Hey peoples of the forums.

I am a little confused as to why my event handler is not fireing. I have a drop down list but the selected index event never fires. Does anyone know of problems with this or had it work for you?

my event handler is as follows.

Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
code in here
End Sub


thanks for your help That'l do donkey, that'l do
[bravo] Mark
 
I just had the idea of putting a javascript attribute in that would submit the page when something was selected.
Does anyone know on the command for that.

I remember this being mentioned a while back but can't find the reference. Rather than onclick I need something else? That'l do donkey, that'l do
[bravo] Mark
 
Hey Mark,

The drop down list's AutoPostback property is set to "false" by default. Just set it to "true", and your events will fire.
:)

Jack
 
doh!
doh doh doh.... doh

Boy do I feel like a newbie sap now.
<mumbles> stupid Jack and his stupid simple solutions</mumbles>

This hurts Jack but heres your star you deserve it. That'l do donkey, that'l do
[bravo] Mark
 
LOL!

How do you think I felt when I realized that the reason why my treeview wouldn't fire the &quot;nodeclicked&quot; event was for the same reason, and I had totally coded a workaround solution to it?
;)

Thanks for the star Mark
:)

jack
 
lol ahh the life of a programmer.
I remember you having problems with the treview's earlier this year, least I think that was you. Anyway thanks for the tip. I was half done my work around solution but fortunately can scratch it now.

Thanks again That'l do donkey, that'l do
[bravo] Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top