Most welcome! I'm glad you found it useful. :-)
On Mar 31, 8:42 pm, Brock <[email protected]> wrote: > The asp:CompareValidator works perfectly... thanks! > > (for those referencing this make sure that ControlToCompare is your > Password and ControlToValidate is the "Retype Password") > > <asp:CompareValidator > ID="validPassword" > runat="server" > > ControlToValidate="txtRetype" > > ControlToCompare="txtPassword" > ForeColor="red" > Font-Bold="True" > BackColor="yellow" > Type="String" > > EnableClientScript="True" > > ErrorMessage="Passwords do not match! Please retype." Font- > Size="Small" Height="34px" > style="text- > align: center" Width="220px"/> > > On Mar 30, 11:07 am, Cerebrus <[email protected]> wrote: > > > > > 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!- > > > Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -
