我希望能在C#中重定向之前从Request.UrlReferrer.AbsoluteUri中删除查询字符串部分。
例如,如果您有自己的
Request.UrlReferrer.AbsoluteUri = "http://localhost:8080/english/index_2011.aspx?logout=true"
现在我想要...
Response.Redirect(Request.UrlReferrer.AbsoluteUri) without QueryString part (?logout=true")
请使用C#。