Suresh Sundar
Success is journey, not a destination, always.
Friday, 29 June 2012
Validate Character in C#
Test-->u r input value,, Lenth---->no of character to validate
public int ValidateLength(string Text, int Length)
{
if (Text.Length <= Length && Text.Length > 0)
{
return 1;
}
else if (Text.Length > Length)
{
return -1;
}
else
{
return 0;
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment