i have a vb.net form button that go through a jquery validation before excude a function in the code behind , actually in either ways if the validation is true or false the function stopped and never call the vb.net function how can i make the it proceed to the code behind ?
vb.net form (textbox and button )
<asp:TextBox ID="ToCc" runat="server"></asp:TextBox>
<asp:Button ID="emailSend" runat="server" Text="send" />
jquery :
$("#<%=emailSend.ClientID %>").click(function(){
if($("#<%=ToCc.ClientID %>").val() == ""){
alert("this fienld can't be empty") ;
return false ;
} else{
return true ;
}
});
the email click vb function is
Protected Sub emailSend_Click(ByVal sender As Object, ByVal e As EventArgs) Handles
emailSend.Click
MsgBox("do any thing ")
End Sub