Default button property in panel does not work
<p>On pressing enter key, I want and image button's click event to get fired. So i have placed the textbox and button inside a panel and given the image button's id in 'DefaultButton' property of the panel. But on pressing enter key, the image button's click event does not get fired. The code is pasted below:</p>

<pre><code>&lt;asp:Panel ID="pnlGlobalSearch" DefaultButton="imgbtnSearch" runat="server"&gt;
    &lt;table width="226" border="0" cellpadding="2" cellspacing="2"&gt;
    &lt;tr&gt;
        &lt;td width="150" align="right"&gt;
            &lt;asp:TextBox ID="txtSearch" CssClass="para1Black" Width="150px" 
                     ValidationGroup="GlobalSearch" runat="server" /&gt;
            &lt;cc1:FilteredTextBoxExtender ID="txtSearch_FilteredTextBoxExtender" 
                     runat="server" Enabled="true" TargetControlID="txtSearch" 
                     FilterType="UppercaseLetters,LowercaseLetters,Custom,Numbers" 
                     FilterMode="InvalidChars"
                     InvalidChars="~`!@#$%^&amp;_-+|\?*(){}[]:;,.',"" /&gt;
            &lt;cc1:TextBoxWatermarkExtender ID="txtSearch_TextBoxWatermarkExtender" 
                     WatermarkText="Enter text to search." runat="server" 
                     Enabled="true" TargetControlID="txtSearch" /&gt;
            &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                     ControlToValidate="txtSearch" ValidationGroup="GlobalSearch"  
                     CssClass="error" Display="None" 
                     ErrorMessage="Please enter text to search."/&gt;                 
            &lt;cc1:ValidatorCalloutExtender ID="RequiredFieldValidator1_ValidatorCalloutExtender" 
                     runat="server" Enabled="true" 
                     TargetControlID="RequiredFieldValidator1"/&gt;
        &lt;/td&gt;
        &lt;td width="76"&gt;
            &lt;asp:ImageButton ID="imgbtnSearch" ToolTip="Click to search." 
                   ImageUrl="images/search2.jpeg" CausesValidation="true" 
                   Width="22px" Height="22px" ValidationGroup="GlobalSearch" 
                   runat="server" OnClick="imgbtnSearch_Click" /&gt;
      &lt;/td&gt;
   &lt;/tr&gt;
   &lt;/table&gt;
&lt;/asp:Panel&gt;
</code></pre>

<p>Also please provide code for search textbox function present in stack overflow website. On entering text in textbox and pressing enter key, the search function should get executed.</p>
