Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

zig?
Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...