ithighway — 2013-07-10T13:37:13-04:00 — #1
Please see the attached image below. When I click the submit button on top it invoke the validation part. How should I fix it so that when I click "Search Submit" button it submit the form to next page.
wwb_99 — 2013-07-10T16:32:41-04:00 — #2
From a HTML sense there is only one form on the page, any postback will trigger validation. Two ways to handle this:
a) move that search form outside of the server-enabled ASP.NET form and perhaps use GET -- really better semantically and lets you have linkable search results pages.
b) Look into the ValidationGroup property on your forms / validators. You could also disable validation for that form in the top right.
irishchieftain — 2013-07-14T10:38:50-04:00 — #3
rashi — 2013-09-16T06:35:58-04:00 — #4
Direct commands are available in ASP.NET, you an use them.
imaginekitty — 2013-11-13T18:44:38-05:00 — #5
I'm a bit rusty but does wrapping the forms in their own <asp:Panel> and using the Panel's DefaultButton attribute help?