protected void Page_Load(object sender, EventArgs e) { ViewState["UrlReferrer"] = Request.UrlReferrer.ToString(); HyperLink1.NavigateUrl = (string)ViewState["UrlReferrer"]; Response.Write((string)ViewState["UrlReferrer"]); }