AutoPostBack
-
I am trying to use two DropDownList controls in the same page. Each DDL will perform a different operation. One will send the user to a link and the other will open a file. If I use only one DDL in the page, it works well. However, if I use both they interfere with each other. Any help on that? cghochberg
-
I am trying to use two DropDownList controls in the same page. Each DDL will perform a different operation. One will send the user to a link and the other will open a file. If I use only one DDL in the page, it works well. However, if I use both they interfere with each other. Any help on that? cghochberg
There pro'ly is a way, but instead of dealing with it--call me chicken--I opted to use 2 radio button list controls. http://www.toasty0.com/OP_Patch.aspx[^] HTH. Best, Jerry
The only way of discovering the limits of the possible is to venture a little past them into the impossible.--Arthur C. Clark
-
I am trying to use two DropDownList controls in the same page. Each DDL will perform a different operation. One will send the user to a link and the other will open a file. If I use only one DDL in the page, it works well. However, if I use both they interfere with each other. Any help on that? cghochberg
Are you scripting again the SelectedIndexChanged event for the individual dropdownlists? Although the AutoPostBack property is needed to tie the client-side event to the post back action, you will still need to capture the specific event which occured. Syntax varies between languages. So if you need more help, please provide your programming language.
-
Are you scripting again the SelectedIndexChanged event for the individual dropdownlists? Although the AutoPostBack property is needed to tie the client-side event to the post back action, you will still need to capture the specific event which occured. Syntax varies between languages. So if you need more help, please provide your programming language.
Yes, I am scripting against SelectedIndexChanged, and I use C#. Being more specific, I have two DDLs, one with links that open new windows and another DDL that posts to another Windows Form (with a corresponding ID). The problem is, if I open a new window first and then I try to post to the web form, I get both: a new window opens (with the previous link, which was already selected) and I get a post. Also (but this was expected), if the user clicks on the back button of the browser after being posted to the other windows form and tries to open a new window in the main page, he is posted back to the windows form. Thanks for the help! cghochberg
-
Yes, I am scripting against SelectedIndexChanged, and I use C#. Being more specific, I have two DDLs, one with links that open new windows and another DDL that posts to another Windows Form (with a corresponding ID). The problem is, if I open a new window first and then I try to post to the web form, I get both: a new window opens (with the previous link, which was already selected) and I get a post. Also (but this was expected), if the user clicks on the back button of the browser after being posted to the other windows form and tries to open a new window in the main page, he is posted back to the windows form. Thanks for the help! cghochberg
Sorry, I'm not familiar with coding windows forms and web forms to work together.