Search code examples
asp.netmaster-pages

Advice on how to search for products with criteria


I have a asp.net website and in the masterpage I have some dropdown controls where the user selects criteria for products. After the last selected dropdown box I send the selected values to another page which is child to masterpage and I make a query to the database and present the results in a gridview.

My problem is that the masterpage is refreshed and all the selected values are cleared. How can I keep the values to masterpage dropdown boxes or is there any better solution for this?


Solution

  • I've added an invisible Panel in the Masterpage and hide all the controls inside. Instead of posting to another page i'm filling the controls with the data and reveal the Panel. I found that this is faster and easier. Thanks for your help