I’m trying to redirect from a user control to a page in a folder above but I’m running into a few problems.
If I use this code then I lose the reference to the CSS file and the page looks bad:
Response.Write("<script language='javascript'>alert('" + msg + "');</script");
Server.Transfer("BatchStatus_New.aspx", true);
If I use this code, then it redirects but skips the alert box:
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "message", "alert('" + msg + "');", true);
Response.Redirect("~//BatchStatus_New.aspx");
This might work but my relative path does not work when I upload to the servers:
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "redirect", "alert('" + msg + &quo ...
Go to the complete details ...