Well, if you're using ASP.NET, M$ has been good enough to provide a
CompareValidator control for this very purpose. It encapsulates the
Javascript required to compare the value of one control to another.
The most common use of this control is for the Password-Confirm
Password textboxes.

Here is a basic tutorial on using the CompareValidator <http://
www.w3schools.com/aspnet/control_comparevalidator.asp>. And another:
<http://asp.net-tutorials.com/validation/compare-validator/>

On Mar 30, 7:08 pm, Brock <[email protected]> wrote:
> What is my best way (client-side of course) on an .aspx page to
> compare the value in the "Password" textbox with that of the "Retype
> Password" textbox? Javascript? Any source code examples anyone knows
> would be helpful - javascript is still rather foreign to me.  Thanks!

Reply via email to