HttpApplication MyApp =(HttpApplication) sender; string MyOldPath = MyApp.Request.Path; string OriginalURL = string.Empty; switch (MyOldPath.ToLower()) { case "/home": OriginalURL = "Modules/Users/Home.aspx"; break; case "/library/getbook": OriginalURL = "Modules/Books/BookShelf.aspx"; break; default: break; } if (OriginalURL!=string.Empty) MyApp.Context.RewritePath(OriginalURL); string strURL= MyApp.Request.Url.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)