URL Rewriting Using global.asax File In ASP.NET

Add one aspx page in your project and give name Login.aspx.
Then after add this namespace on your global.asax file,
using System.Web.Routing;
Add this code in your global.asax file.
  1. protected void Application_Start(object sender, EventArgs e)   
  2. {  
  3.     RegisterRoutes(RouteTable.Routes);  
  4. }  
  5. public static void RegisterRoutes(RouteCollection routecollection) {  
  6.     routecollection.MapPageRoute("Login""Login""~/Login.aspx");  
  7. }  
Run the Login.aspx page without page extension as "Login".
For ex: 

http://localhost:51965/Login.aspx //before URL rewriting
http://localhost:51965/Login //after URL rewriting