ASP Forum
asp application
prasath_s01 | Posted 6:48am 19. June 2008 Server Time |

hi all,
i m new to asp. This is my first application. I m doing login page . (login.asp)
As usual it has usrename , password textbox and alogin button .
i need to do client side validation for mandatory fields and

I need to do server side validations to check for the hardcoded username and password ....
if it matches i have to redirect to another page(content.asp) ...


can any one help me pls
stimpy | Posted 5:22pm 19. June 2008 Server Time |

Okay so you have your basic form code:
<form action="someotherpage.asp" method="post">
...
...
</form>

To do the client side validation you'd add an onsubmit event to your form like this:
<form action="someotherpage.asp" method="post" onsubmit="return myvalidationfunc();">
...
...
</form>

where myvalidation func is a javascript function doing your client side validation.

that should get you started on the client side. For the server side just check lesson 13 here at Haneng:
http://www.haneng.com/lessons_13.asp

WIth that good luck... :)


Reply to Post asp application



Back to Forum Page