HttpContext.RewritePath Method (String)
.NET Framework 3.0
Rewrites the URL using the given path.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The following example demonstrates how to rewrite the internal path to send the client to another page.
void Button_Click(Object sender,EventArgs e)
{
get_Response().Write("Data submitted to this page");
} //Button_Click
void Page_Load(Object sender,EventArgs e)
{
// Rewrite the internal path to send the client
// to the page passed to the RewritePath method.
get_Context().RewritePath("HttpContext_Next.aspx");
} //Page_Load
Community Additions
ADD
Show: