I am using the simple code to do URL Re-writing in a web based application.
Here is my global files code:
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
RouteTable.Routes.MapPageRoute("Login", "Admin/LoginPage", "~/Admin/login.aspx");
}
I have added the following lines in Web.config file also:
<httpModules>
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></add>
</httpModules>
I Dont know why this is not working for me. Please help me..