Question reg CompareValidator

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Guys,

I want to force users to change password every thirty days. I want to force
them to select a different password then old password. How can i do this on
client end instead of server round trip?

Thanks

Manny
 
You cannot do it (safely) without a trip to the server, but you can do
it without a "roundtrip". Use the CustomValidator control, and write
the ClientValidation code in Javascript that will use the XMLHttpRequest
object to call a service on your web server. You would pass in the
password (preferably hashed) and it would return true or false if it is
a valid password. The service would do the check on the server side.
The javascript on the client side would get the result and set the
return value for the CustomValidator client side code.

CustomValidator tutorial:
http://samples.gotdotnet.com/quicks...lref/webctrl/customvalidator/doc_custval.aspx

For more information on using XMLHttpRequest - search the web for AJAX
examples.


Joshua Flanagan
http://flimflan.com/blog
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top