protected void linkrestore_Click(object sender, EventArgs e) { int intPostID = int.Parse(Request.QueryString["PostID"]); //byte intPostTypeID = byte.Parse(Request.QueryString["PostTypeID"]); Model_Post p = new Model_Post(); if (p.UPDATETrash(intPostID, true)) { Response.Redirect(Request.Url.ToString()); } }
protected void linktrash_Click(object sender, EventArgs e) { int intPostID = int.Parse(Request.QueryString["PostID"]); byte intPostTypeID = byte.Parse(Request.QueryString["PostTypeID"]); Model_Post p = new Model_Post(); if (p.UPDATETrash(intPostID, false)) { Response.Redirect("Edit?PostTypeID=" + intPostTypeID); } }