1. I have a front page template
If you click on "Make an appointment now", without entering anything in the fields, the fields get validated. It's done by calling "index1-validation.js".
That form is not a server side form. Doesn't have "runat=server"
2. I took that page and changed that section by adding an ASP.Net login control.
That login is a server side control.
<form class="col-md-7 col-lg-6" runat="server" id="frmLogin" action="/">
I changed "index1-validation.js" to this
// validate signup form on keyup and submit
Login1$UserName: "Please enter your fullname",
Now, when I click on "submit", I want to do validation first but it calls the server (I don't have code behind the submit yet, you'll get page not displayed)
I think I need to do something like this
First, make sure the form is valid, set isValid variable. If not valid, prevent the form from being submitted.
I don't know if that's correct and if so, where all this would go?