protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["removeid"] != null) { int Key = Convert.ToInt32(Request.QueryString["removeid"]); tagsLogic = new TagsModel(); tagsLogic.RemoveTag(Key); Response.Redirect(Session["PreviousPage"].ToString()); } Session["PreviousPage"] = Request.Url.OriginalString; LoadAllTags(); }