Phillh Posted April 17, 2003 Posted April 17, 2003 Drop Down Lists Hi... I'm using VB.Net on a web form how can I make a dropdownlist box run some code when I user makes a selection. I have tried using the Dropdownlist_SelectedIndexChanged but it doesn't work...do you need to then refresh the web page or something....? Thanks Phill Quote
steved Posted April 17, 2003 Posted April 17, 2003 Did you write it using Visual Studio? Either way, posting some code will get you a quick answer to your question, because everything should work fine on its own. You shouldn't have to force refresh the page. .steve Quote zig?
Moderators Robby Posted April 17, 2003 Moderators Posted April 17, 2003 Did you add the dropdownlist at run-time, if so, did you add an event handler? Quote Visit...Bassic Software
Hotdog Posted April 22, 2003 Posted April 22, 2003 Verify that the HTML code recognizes the eventhandler, and make sure the "Handles" tag is at the end of your sub. When cutting and pasting controls and things, the handles frequently disappear from the routines on their own because they can no longer find the controls they are supposed to handle. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.