Thursday, April 29, 2010
Sunday, April 11, 2010
Generate Random Number between specified range
private int GenerateNewRandomNumber(int min, int max)
{
Random Myrandom = new Random();
return Myrandom.Next(min, max);
}
//To call function
int Myrandom= GenerateNewRandomNumber(5, 20);
{
Random Myrandom = new Random();
return Myrandom.Next(min, max);
}
//To call function
int Myrandom= GenerateNewRandomNumber(5, 20);
Wednesday, April 7, 2010
valuble validation scripts Asp.net C#
Enter atleast 5 characters
^.{5,}$
Please ignore the space character.
^[\S]*$
^.{5,}$
Please ignore the space character.
^[\S]*$
Subscribe to:
Posts (Atom)