I have button:
html:
<asp:Button ID="MyBut" runat="server" OnClick="MyBut_Click" CssClass="MyBut" />
C#:
protected void MyBut_Click(object sender, EventArgs e)
{....}
JS:
$(document).ready(function () {
$(".MyBut").click(function () { alert("!"); });
})
Now js function is executed first, after that C# method is executed . Can C# method be first?