Hi all

In my application developed in asp.net 4.0 i am using url routing module. Below is the code i used in Global.asax

void Application_Start(object sender, EventArgs e)
        {
            RegisterRoutes(RouteTable.Routes);          

        }

        private void RegisterRoutes(RouteCollection routes)
        {           
            routes.MapPageRoute("testpage", "{storename}", "~/Store.aspx"); 
          
                    
        }

I debug my app and put break point on page_load event, the page_load event of this is called when i move to other pages and also more than one time.
Some body tells me why is this so? How can i avoid this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.