title: asp.net UpdatePanel not working correctly
body: <p>Im using an UpdatePanel to refresh a datagrid with some search results but is not working and the whole page goes in postback.  i hope somebody can help me, cant get this to work right. . Thanks. Here is my code:</p>
  
  <pre><code>            &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
              &lt;ContentTemplate&gt;
  
              &lt;table width="100%" border="0" cellspacing="0" cellpadding="0"&gt;
                  &lt;tr&gt;
                      &lt;td align="left" class="pageTitle" valign="top"&gt;
                          &lt;twc:LocalizedLiteral Text="CRMcontxt6" runat="server" /&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
  
                      &lt;tr align="left" style="background-color: #9bbbe3"&gt;
                          &lt;td align="left" colspan="3"&gt;
                              &lt;asp:Label ID="lblSearch" Height="15" runat="server" Font-Bold="true" Font-Size="11"&gt;&lt;/asp:Label&gt;
                              &lt;asp:TextBox Width="500px" ID="Search" autoclick="BtnSearch" runat="server" CssClass="boxDesign" /&gt;
                              &lt;asp:LinkButton  ID="BtnSearch" runat="server" CssClass="save" /&gt;
                           &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
  
                     &lt;asp:datagrid id="searchresults" runat="server"&gt;
             &lt;/ContentTemplate&gt;
  
               &lt;Triggers&gt;
                  &lt;asp:AsyncPostBackTrigger ControlID="BtnSearch" /&gt;
              &lt;/Triggers&gt;
              &lt;/asp:UpdatePanel&gt;
  </code></pre>