Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
1 page is product details page
2 All products according to brands

I am using url rewrite in global.aspx by which one one page is working
my code is

C#
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");
      

   }


C#
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();

    }
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900