What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 1275 |  Welcome, Guest!   Register  Login
 Home > Forums > WPF > how to use validation Control in WPF ...
Gow.Net

how to use validation Control in WPF

Replies: 5 | Posted by: Gow.Net on 2/21/2012 | Category: WPF Forums | Views: 2100 | Status: [Member] | Points: 10  


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


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Blessyjees
Blessyjees  
Posted on: 2/21/2012 2:44:16 AM
Level: Bronze | Status: [Member] | Points: 25

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. | Reply | Alert Moderator 

Gow.Net
Gow.Net  
Posted on: 2/21/2012 3:32:50 AM
Level: Starter | Status: [Member] | Points: 25

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. | Reply | Alert Moderator 

Blessyjees
Blessyjees  
Posted on: 2/21/2012 4:05:23 AM
Level: Bronze | Status: [Member] | Points: 25

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. | Reply | Alert Moderator 

Gow.Net
Gow.Net  
Posted on: 2/21/2012 5:26:37 AM
Level: Starter | Status: [Member] | Points: 25

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. | Reply | Alert Moderator 

Blessyjees
Blessyjees  
Posted on: 2/21/2012 5:55:03 AM
Level: Bronze | Status: [Member] | Points: 50

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. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/23/2013 9:23:13 PM