Posted on: 7/9/2014 5:24:25 PM | Views : 382

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 ...