我无法获得我正在工作的页面的完整URL。这是我想获取的URL:http://localhost:54570/Shipment/ShipmentDetails.aspx?HawbBLNo=NEC00000004#BFT
但是代码只返回http://local/Shipment/ShipmentDetails.aspx?HawbBLNo=NEC00000004
。
protected void btnSave_Click(object sender, EventArgs e)
{
url = HttpContext.Current.Request.Url.AbsoluteUri;
UpdateDetails();
Response.Redirect(url);
}