Mega Code Archive

 
Categories / ASP.Net Tutorial / Page Lifecycle
 

Remapping URLs in your applications web configuration file

Remap the Home.aspx page to the Default.aspx page. File: Web.Config <configuration> <system.web>   <urlMappings>     <add       url="~/Home.aspx"       mappedUrl="~/Default.aspx"/>   </urlMappings> </system.web> </configuration> The tilde character (~) represents the current application root.  A forward slash (/) at the start of a URL represents the website root.