title: Text Change event fired when button clicked
body: <p>I am working on .net 2.0  I am populating a Grid View with multiple textboxes. The textbox has text change event. There is also a button with click event. The problem I am facing is that when the I enter the text in textbox and then click on button, the text change event gets fired, and the execution does not come to button click block.  How can I detect if button has been clicked when both the events are fired.</p>
  
  <p>There is the textbox with call to function for text change event</p>
  
  <pre><code>&lt;asp:TextBox ID="txtChassis" runat="server" CssClass="form_text_box" AutoPostBack="true" OnTextChanged="Chassis_TextChanged"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>and also call to function for button click event.</p>
  
  <pre><code>&lt;input class="form_button" id="btnSearch" title="Show Details" accesskey="S" type="submit"
                                                                      value="SAVE" name="btnSave" runat="server" onserverclick="btnSearch_ServerClick"/&gt;
  </code></pre>
  
  <p>However, in case text is placed in textbox and button is clicked, then the text change event function gets called.</p>