Regarding Enterprise libaray validation

Dec 15, 2008 at 12:42 PM

i have the following class

public

 

class Person

 

{

 

private string firstname;public string lastname;

 

 

public string FirstName

 

{

get{return firstname;}set{firstname = value;}}

 

 

public string LastName{get{return lastname;}set{lastname = value;}}

 

}

i used config file to create validation rule
here firstname is mandatiory so i used [NotNullvalidator]
but in case of lastname
i can be null but if entered i should be less than 20 characters
please help me how to created ANDCOMPOSITE VALIDATOR
PLEASE

Dec 16, 2008 at 7:33 PM
You're posting in the CodePlex Discussions (questions about the CodePlex site). Please go to the project's pages and post to the Discussions of the project you're using.