void Application_Start(object sender, EventArgs e) { RegisterRoutes(RouteTable.Routes); RegisterRoutes1(RouteTable.Routes); Application["k"] = 0; } static void RegisterRoutes(RouteCollection routes) { routes.MapPageRoute("Product_detail", "{Name}/{id}.html", "~/Products/Product_detail.aspx"); }
void Session_Start(object sender, EventArgs e) { // Code that runs when a new session is started Application.Lock(); Application["v"] = ((int)Application["k"] + 1); Application.UnLock(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)