title: How to stop events from firing in pageload?
body: <p>I have a problem. Currently, I set the textbox value during PageLoad. However, this triggers the textbox change event. </p>
  
  <p><strong>Markup</strong></p>
  
  <pre><code>    &lt;asp:TextBox ID="txtToDate" CssClass="text" 
  runat="server" Width="100px" ReadOnly="false" 
  AutoPostBack="true" &gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p><strong>On pageload</strong></p>
  
  <pre><code>txtToDate.Text = Format(Now.Date, "MM/dd/yyyy")
  </code></pre>
  
  <p><strong>Textchange Event</strong></p>
  
  <pre><code>    Protected Sub txtToDate_TextChanged(ByVal sender As Object, 
  ByVal e As System.EventArgs) Handles txtToDate.TextChanged
          Me.Grid.Visible = False
      End Sub
  </code></pre>
  
  <p>How can I prevent the change during PageLoad from triggering the texbox change event?</p>