dropdownlist selectedindex changed in code -postback?

E

ECathell

How do I initialize a postback when I have changed the selected index through code? The dropdownlist.selectedindex event does not fire, therefore I assume I need to do a postback after I change it in my code. When I change it with the control at runtime it works fine(autopostback enabled)
 
H

Harolds

Just call the code yourself, dropdownlist_selectedindex(nothing,nothing)

or better yet create another method that has the code you need to process on
selected index change and call it from both places.
 
H

Harolds

AutoPostBack events are triggered from the client side. ECathell wants the
event to be triggered on the server side, which means just call the code at
the point in the code you wanted the event triggered.
 

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,142
Messages
2,570,819
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top