title: Call a method on Page Load
body: <p>I want to make this code work on c# code behind. I know in C something similar can be done, but can it be done here? </p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      Bar.Text = "Updating Information";
      InsertData();
      Bar.Text = "Information Updated";
  }
  
  
  protected void InsertData(object sender, EventArgs e)
  {
    //loops and statements
  }
  </code></pre>
  
  <p>any ideas?</p>