Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I'm pretty new to jquery, javascript and we are building a webapplication wich contains a login form. A requirement is that when the user fills in invalid information, a errormessage shows.
I am including a example that demonstrate the behavior wich the errormessages need to have
..Example..
We are trying not to use client side validation, so i wonder, is this possible using server side validation and some jquery functions, etc?

thx!
Posted
Comments
JoCodes 2-Oct-13 7:05am    
Jquery validations are also client side , right? Why you want an server side validation?
Soumitra Mithu 2-Oct-13 7:10am    
why are you trying not to client side validation?? your example is also using client side validation.
[no name] 2-Oct-13 7:24am    
First you need to decide what you need a server side validation or client side validation.
For server side validation we have validator control in asp.NET
for Client side validation we can use jQuery or javascript. Both are same almost.

Hi,
Use ASP.Net Validation Controls[^] and if you want to validate them from server side then on your save button add this line of code
C#
if (Page.IsValid)
{
    //success
}
else
{
    //error
}
More on Exploring ASP.NET Validation Controls[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900