Code
<asp:HyperLink ID="HyperLinkReturn" NavigateUrl="javascript:window.history.go(-1);" Text="返回前页" Visible="false" runat="server" />
/// <summary>
/// Get/set the displaying text of content page header.
/// </summary>
public string Text { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
this.HyperLinkReturn.Visible = string.Compare(Request["returnable"], "true", true) == 0;
if (!string.IsNullOrEmpty(Request["returnedurl"]))
{
this.HyperLinkReturn.NavigateUrl = HttpContext.Current.Server.UrlDecode(Request["returnedurl"]);
}
}
}
<asp:HyperLink ID="HyperLinkReturn" NavigateUrl="javascript:window.history.go(-1);" Text="返回前页" Visible="false" runat="server" />
/// <summary>
/// Get/set the displaying text of content page header.
/// </summary>
public string Text { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
this.HyperLinkReturn.Visible = string.Compare(Request["returnable"], "true", true) == 0;
if (!string.IsNullOrEmpty(Request["returnedurl"]))
{
this.HyperLinkReturn.NavigateUrl = HttpContext.Current.Server.UrlDecode(Request["returnedurl"]);
}
}
}