url rewritting in asp.net :
* Create WebForm aspx Page ..
(Notepad.aspx)
* Add Reference System.Web.Routing ..
* Open Global.asax Page ..
NameSpace :
using System.Web.Routing;
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
RegisterRoutes();
}
private static void RegisterRoutes()
{
System.Web.Routing.RouteTable.Routes.Add("Any Description",
new System.Web.Routing.Route("Note",new
PageRouteHandler("~/Notepad.aspx")));
}
}
No comments:
Post a Comment