I know i can set a form action to "" and have it be processed by the page its on.
However, This isnt good practice especially for large applications
In JSP you have a form, it gets submitted to a servlet, that servlet processes it, then sends an appropriate redirect
Ex: form action="loginHandler.jsp">>>loginHandler.jsp(process & send redirect)>>failedLogin.jsp or home.jsp;
Is there an equivalent to this in ASP.net? Heres what Im trying to do
<form id="loginForm" method="post" action="formProcessors/loginHandler.aspx">
<fieldset>
<span class="label">Username:</span>
<input class="text" type="text" name="username"/>
</fieldset>
<fieldset>
<span class="label">Password:</span>
<input class="text" type="password" name="password"/>
</fieldset>
<fieldset>
<input type="submit" class="center" value="Log in"/>
</fieldset>
</form>
In my loginHandler.aspx on page load, I do:
If(isPostBack){//process}
When I click the login button on my form..nothing happens