CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 SOLVED - Confirm Password

Print topic Send  topic

Author Message
kescott


Posts: 49
Posted: 08/05/2008, 8:36 AM

I have setup a registration form that allows a user to create a user
name and password. I want the password to match in a confirmed
password textbox.

How do I do this with C#.NET?:*)
_________________
B.S. of Computer Science
Class of 2005
Norfolk State University
Norfolk, VA
http://www.nsu.edu
View profile  Send private message
ttflyer

Posts: 11
Posted: 08/19/2008, 11:22 AM

I use a 'built-in' .NET 'Compare Validator' . It can compare two fields automatically to see if they are the same. I also use it for date ranges etc. Works fine with CodeCharge.

http://msdn.microsoft.com/en-us/library/ms972961.aspx

~Andy
View profile  Send private message
kescott


Posts: 49
Posted: 09/09/2008, 10:45 AM

I solved this just fine

  if ((password.Value != null && confirm.Value != null)   
&& (password.Value.ToString() != confirm.Value.ToString() ))  
 {  
  errors.Add("Password","The values of Password and Confirm fields do not match.");   }


_________________
B.S. of Computer Science
Class of 2005
Norfolk State University
Norfolk, VA
http://www.nsu.edu
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.