i'm using jquery-steps plugin and my site is on C# webforms. how to call method on click finish button. here is js
onFinished: function (event, currentIndex) {
var form = $(this);
form.submit();
}
and c# codes
protected void save(object sender, EventArgs e)
{
MyDB db = new MyDB ();
MSS mus = new MSS ();
mus.Name= name.Text;
mus.Surname= surname.Text;
db.MSS.Add(mus);
db.SaveChanges();
Response.Redirect("/Services/printOut?id="+oper.ID, false);
}
before using jquery-steps i was just using this to call save method
<asp:Button Text="Finish" runat="server" CssClass="btn btn-info" OnClick="save" />