Different Required Field validation for two buttons on the same page
Posted on 2004-11-18
I am making changes to an aspx page which contains a form with a number of text boxes. The text boxes are split, so on one side there is three text boxes with a "Search" button below them. On the other side there is 10 boxes with an "Add" button. The buttons above the Search button are only required when the user does a search, and the same for the add buttons. I would like to avoid writing messy server side custom validation code. I had an idea to use two forms in the aspx page, but that didn't work. Any ideas?
Any help would be much appreciated!