Rewrite URLS

xiaoxiao2021-03-06  103

One of the more obscure - but potentially useful - methods in the portion of the .NET Framework that comprises ASP.NET is the HttpContext class's RewritePath method Used internally by ASP.NET to strip session IDs from URLs when cookieless session state is enabled,. RewritePath Can Also Be buy to "fake" URLS WITHIN An Application. To Demonstrate, Consider The Following Aspx File, Which We'll Call ReWritePath.aspx: