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

Forum statistics

Threads
474,291
Messages
2,571,453
Members
48,138
Latest member
DongGell95

Latest Threads

Top