jQuery to Validate password and confirm password

This article is mainly focused on the validating the password and Confirm password using Client Side Scripting "jQuery".

Normally we have password and confirm password in the regsitration page where we need to validate the password and confirm password.

This can also be done using the compare validator also in Asp.Net.

In this demo I have taken two textboxes where i set the textmode as "password".Now in the button click I am validating the both fields has same value or not.

HTML Markup:

Code :

Here I have written like if both the values are same then excute the server code as "return 1==1"  :-) which means execute the server code.

Any suggestion on this article are welcome .
Hope this may help :-)


Popular posts from this blog

How to hide bootStrap popover when user click(s) outside the popover?

Exporting to excel from a custom class object using C#.NET

Get the Clicked Cell Value and Column Name of GridView in ASP.NET