I have a button in an UpdatePanel that if it is clicked will redirect the user to another page in the same folder in some cases and otherwise will update the UpdatePanel with some info. If I do a redirect in this way:
Response.Redirect("Test.aspx");
it does a redirect to /Test.aspx which in most cases would be fine, but the problem is that the application is accessed through a reverse proxy (at x.com/y/) which will cause some problem since /Test.aspx will redirect the user to a nonexisting file in the root of the server that does the proxying.
Is it possible to force the redirect to skip the / stuff since it is not necessary in this case, since both files are in the same folder.
Edit: Code sample
<asp:ScriptManager ID="script" runat="server" />
<asp:UpdateProgress ID="prog" runat="server" AssociatedUpdatePanelID="up">
<ProgressTemplate>
<h1>Waiting...</h1>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="up" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:TextBox ID="txt" runat="server" />
<asp:Button ID="btn" runat="server" OnClick="click" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>
Click method:
protected void click(object sender, EventArgs e)
{
Thread.Sleep(3000);
if (txt.Text == "redirect")
Response.Redirect("Test.aspx");
else
txt.Text = "";
}