Question about SelectedIndexChanged event for dropdown list

J

john

I have a dropdown with a SelectedIndexChanged event handler. I want
the event to only get called if the dropdown list was the control that
caused the postback. But if the value of the list is changed by the
user and then some other control causes the postback, the event
handler still gets called. Is there some way to ignore the event
handler unless the dropdown is the control that caused the postback?
Or is there a way for me to tell which control caused the postback so
I can ignore the event if I want to?
thanks in advance.
 

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
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top