try this
void Application_Start(object sender, EventArgs e)
{
// Put Here Your Image Restrict Code
}
void Application_End(object sender, EventArgs e)
{
// Code that runs on application shutdown
}
void Application_Error(object sender, EventArgs e)
{
// Code that runs when an unhandled error occurs
}
void Session_Start(object sender, EventArgs e)
{
// // Put Here Your Image Restrict Code
}
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com
Murugavelmsc, if this helps please login to Mark As Answer. | Alert Moderator