ASP.Net Master Page, User Controls, Form default buttons Issue
Posted on 2011-10-03
I have a website built using .Net master pages (C#), on every page there is a "search" User Control.
On general pages, this works fine - entering text in the search box and either clicking the Search button or pressing Enter submits the search request and shows results.
The problem is on the page with the asp:Login control - whatever happens, the validation for the login form fires. If I try doing a search it highlights the login form fields as being in error and does not activate the search function.
I have tried putting an asp:panel around both the search elements and login control in their respective User Controls, with the DefaultButton set to the correct (?) control - but it still does not work.
What am I missig here?!