Click to See Complete Forum and Search --> : Passing Parameters using server controls


rayc123
April 12th, 2003, 05:35 PM
I have a web form with three dropdownlists and a button. The lists are search parameters that I send to SQL Server. When I click the button, the dropdownlists reset to the first item and send those values to the database.

How can I preserve the selected values? and send the parameters to the database?

Ray

V. Lorenzo
April 25th, 2003, 12:34 PM
Check that you are not trying to fill the lists on every page creation process. If the page is created in response to a postback, you don't need to fill the lists again. You may use Page.IsPostaBack to know if it's a postback.

VLorz