示例#1
0
    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());
        }
    }
示例#2
0
    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);
        }
    }