troubleshooting Question

DropDownList doesn't generate a PostBack event 'OnSelectedIndexChanged'

Avatar of Relegence
RelegenceFlag for Israel asked on
JavaScriptASP.NETWeb Applications
4 Comments1 Solution633 ViewsLast Modified:

I am writing a c# application. I have a page with a DropDownList with AutoPostBack set to 'true'.
There is a case where, on the client side, I reset the DropDownList from another page:
parent.frames[0].document.getElementById('ddlGroups').selectedIndex = 0;

after that, I can't select the previous item in the DropDownList anymore - the postback doesn't happen.
Is it because I have changed the index from the client side?
How can I fix that?

Maybe I should reset the DropDownList on the server side. If so, Is it possible to reference a control from a different page?

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros