Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ASP.NET Route HACK/FIX
- Created by: Hamzalija Meco
- Place this code in "Global.asx"
- ABOUT: this will fix the asx bug there is in asp.net for each time we use url redirect in our pages.
- */
- void RegisterRoutes(System.Web.Routing.RouteCollection routes)
- {
- routes.Add(new System.Web.Routing.Route("(resource).asx/(*pathinfo)", new System.Web.Routing.StopRoutingHandler()));
- }
- void Application_Start(object sender, EventArgs e)
- {
- // Code that runs on application startup
- RegisterRoutes(System.Web.Routing.RouteTable.Routes);
- }
Advertisement
Add Comment
Please, Sign In to add comment