Q:

How to stop onclick event of master page on conent page textbox enter click

I have two search options: 

On Master Page there is a text box and button for search.  
On content page there is a text box and button for search.  

Now whenever I press Enter key from keyboard, the masterpage button event is fires.  I mean in every case when I press Enter key from keyboard the master page search button click event is called.  I want If someone fill the content page search form and press Enter key, it fires content page event.  Can anyone help me about this issue? 
Author edit from answer
I have 2 search controls: one in master page which i am showing on every page, and one in content page which is my search page which displays search results.  I have written code in master page button click which will redirect to content page which displays search result.  

From home page i am typing some text in master page search textbox and pressing Enterfrom keyboard.  As per coding it is redirecting to my search result page which is content page. 
Now i am typing some text in my search result page which is content page and pressing Enter from keyboard till this steps it works fine. 
Now when type some text in master page search textbox again and pressing Enter from keyborad instead of taking onclick of master page search button it is firing onclick of search result button which is content page

A:

Wrap each search textbox and button with a Panel control and set its DefaultButton property to the ID of the search button as follows:
<asp:Panel id="pnlSearch" DefaultButton="btnSearch" runat="server">
  <asp:TextBox id="txtSearchString" runat="server" />
  <asp:Button id="btnSearch" Text="Search" runat="server" />
</asp:Panel>

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.panel.defaultbutton.aspx

