how to use validation Control in WPF [Resolved]

Posted by Gow.Net under WPF on 2/21/2012 | Points: 10 | Views : 5885 | Status : [Member] | Replies : 5
how to use validation Control in WPF ?. and
how i set below validation in my WPF application
Password: minimum 3 char maximum 10
Contact number: must enter 10 digit number;
Email ID=Enter Valid emailID (Ex:a@gmail.com)


gowthaman8870226416


Responses

Posted by: Blessyjees on: 2/21/2012 [Member] Bronze | Points: 50

Up
0
Down

Resolved
Hi,

Use these regular expressions

contact number :^\d{10}$
password: ^[a-zA-Z]{3,10}$ - if you need any character in password, just add that in the expression like including number and $ ^[a-zA-Z0-9$]{3,10}$

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Blessyjees on: 2/21/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi,

There is no validation controls in wpf. So you can use regular expressions to validate the data.

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gow.Net on: 2/21/2012 [Member] Starter | Points: 25

Up
0
Down
hi mam can u tell one example for use regular expressions to validate the data in wpf

gowthaman8870226416

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Blessyjees on: 2/21/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi,

See this link http://www.c-sharpcorner.com/Blogs/3582/email-validation-in-wpf.aspx

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gow.Net on: 2/21/2012 [Member] Starter | Points: 25

Up
0
Down
hi mam i need validation for below condition
Password: minimum 3 char maximum 10
Contact number: must enter 10 digit number;


gowthaman8870226416

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response