title: VB.NET if button1 caused post back then
body: <p>I have a situation where I need to ignore parts of page load sub inside a isPostback = true. Basically inside the isPostBack I want something like if button1 caused postback.... do this else do this...</p>
  
  <pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  
      If IsPostBack = True Then
  
          If TextBox1.Text &lt;&gt; String.Empty Then
  
              CheckDate()
          End If
  
      End If
  
  
  End Sub
  </code></pre>