title: UpdatePanel in Asp.NET postback on enter key press
body: <p>Hello there I have an <code>updatepanel</code> setup. I have set its update mode to be conditional so that it only fires when the trigger events happens. Inside the <code>updatepanel</code> I have set the triggers to be some image controls and the event name to be click. Everything's fine till now. </p>
  
  <p>But now I have also a <code>textbox</code> setup. When ever I enter some other text and press enter it causes the postback and the update panel takes control. Even though I have set the <code>autoPostBack</code> property of the <code>textbox</code> to be false and the <code>updatePanel</code> <code>UpdateMode</code> to be Conditional. Could somebody please point out the problem. What am I doing wrong? I only want the <code>updatepanel</code> to take charge when the trigger events occur for this <code>updatePanel</code> </p>
  
  <p>Here's my code for <code>updatepanel</code> and <code>textBox</code> . . </p>
  
  <pre><code>        &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" &gt;
              &lt;Triggers&gt;
                  &lt;asp:AsyncPostBackTrigger ControlID="ImageButtonLeftArrow" EventName="click" /&gt;
                  &lt;asp:AsyncPostBackTrigger ControlID="ImageButtonRightArrow" EventName="click" /&gt;
              &lt;/Triggers&gt;
              &lt;ContentTemplate&gt;
  
                  &lt;asp:AdRotator ID="AdRotator1" runat="server"
                  AdvertisementFile="~/MainImages.xml" Height="650" Width="934" 
                  onadcreated="AdRotator1_AdCreated" CssClass="borderClassForAdRotator" /&gt;
  
                  &lt;asp:UpdateProgress ID="UpdateProgress1" runat="server" &gt;
                      &lt;ProgressTemplate&gt;
                          &lt;div &gt;
                          &lt;img src="images/loading.gif" class="overLayImage" /&gt;
                          &lt;/div&gt;
                      &lt;/ProgressTemplate&gt;
                  &lt;/asp:UpdateProgress&gt;
  
              &lt;/ContentTemplate&gt;
          &lt;/asp:UpdatePanel&gt;
   &lt;asp:TextBox ID="search" CssClass="search" runat="server" AutoPostBack="false" &gt;&lt;/asp:TextBox&gt;
  </code></pre>