Author: serena79 | Posted on: 8/28/2008 12:46:02 PM | Views : 317

I have an update panel, containing a panel, that has some search fields (like company, city, state, zip) and a search button.  I have a regular expression validator which I use for the zip code field.  I also have one other label, in an update panel, that is next to the company name textbox.  On the text changed event, I check our database to see if the company name entered is valid.  If it is not, I display a message in the label.  

Then, I have a second panel with it's visibility set to false, containing a gridview to display the results.

When the user clicks the search button, I check what combination of search criteria has been entered so see if they have entered enough criteria.  For instance, we don't allow users to search within an entire state, they would need to supply a city as well.  If the criteria is not acceptable I display a message.  

When I click the Search button, if the criteria is unacc ...

Go to the complete details ...