.aspx, . , url .aspx, , .
MVC, cshtml, url // cshtml.
, , .aspx.
Globl.asax
public class Global : System.Web.HttpApplication
{
private void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("About", "about", "~/about.aspx");
routes.MapPageRoute("Index", "index", "~/index.aspx");
}
protected void Application_Start(object sender, EventArgs e)
{
this.RegisterRoutes(RouteTable.Routes);
}
}
.aspx, MVC.
, Url Routing
Url Rewrite
, url web.config.
<urlMappings enabled="true">
<add url="~/questions/ask" mappedUrl="~/questions/ask.aspx?page=Ask"/>
</urlMappings>
url URL- .aspx , - URL- .aspx.
<rule source>
, URL-, , , .aspx, .
UrlMappings, .aspx.