title: Add postbackurl as a attribute to button
body: <p>I have a button, which <code>OnClick</code> stores some text to tables in a database.</p>
  
  <p>All this in <code>asp.net</code> using <code>c#</code> and .NET Framework 4.0.</p>
  
  <p>However, i need that, when click, the button executes the <code>OnClick</code> method, thing is doing right now, but ALSO, navigates to another page, to continue registration.</p>
  
  <p>The registration form is about 9 pages, i know if i pass <code>postbackurl="url"</code> it navigates to another page/form, but then it doesn't executes the <code>OnClick</code> method.</p>
  
  <pre><code>&lt;div style="text-align:right; margin-top:20px"&gt;&lt;asp:Button ID="Button1" runat="server" ValidationGroup="Curriculum" postbackurl="Envia2.aspx" OnClick="Button1_Click" CssClass="my_btn" /&gt;&lt;/div&gt;
  </code></pre>
  
  <p>So, how can i 'attach' this attribute to the <code>OnClick</code> method?</p>
  
  <p>Or there is another walkaround to this situation?</p>
  
  <p>Thanks in advance!</p>