phone number

May 7, 2009 at 11:38 AM
hi naspinski,
I have another little question:

you can make to set phone number in 3 numbers (and not 10) and that it's not a required field??

only if it's possible!

thanks again
Coordinator
May 8, 2009 at 6:52 AM

in profile.aspx.cs add this in the bottom of the Page_load method:

 

rfvPhone.Enabled = false;

regPhone.ValidationExpression = "^[0-9]{3}$";

 

Or you could do this in the markup if you wanted (and knew how).

May 8, 2009 at 10:27 AM

it works!

thanks another time!

 

BYE!