Last active
May 18, 2018 08:32
-
-
Save josy1024/98804703de492154adbabc123a4e9b2f to your computer and use it in GitHub Desktop.
redirect to otherurl aspx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="C#" %> | |
<script runat="server"> | |
protected override void OnLoad(EventArgs e) | |
{ | |
Response.Redirect("/pathnew/otherurl.aspx"); | |
//maybe useful as default.aspx for folder redirections | |
// variant and redirect with "q" parameter | |
// Response.Redirect("/pathnew/otherurl.aspx?q=" + Server.HtmlEncode(Request.QueryString["q"]) ); | |
} | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Last update: + add QueryString option