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