string GetRandomFile()
{
string[] files = Directory.GetFiles(MapPath(Request.ApplicationPath), "*.aspx");
Random rnd = new Random();
string rndFile = files[rnd.Next(files.Length)];
return Path.GetFileName(rndFile);
}
{
string[] files = Directory.GetFiles(MapPath(Request.ApplicationPath), "*.aspx");
Random rnd = new Random();
string rndFile = files[rnd.Next(files.Length)];
return Path.GetFileName(rndFile);
}