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"]);
}
}
}
posted @
2008-12-09 10:43
paymob
阅读(
130)
评论()
编辑
收藏
举报