Exemplo n.º 1
0
    //上线下线
    protected void btncolrfb_Click(object sender, EventArgs e)
    {
        //CheckBox chkonline = //e.Item.FindControl("chkonline") as CheckBox;
        TPortalClass.JpColumns col = new TPortalClass.JpColumns();

        col.cid = this.txtcid.Text;
        if (this.txtisrfb.Text == "true")
            col.hotpublish = "1";
        else
            col.hotpublish = "0";
        col.UpdateRfb();

        TPortalClass.JpCommon JpCommon = new TPortalClass.JpCommon();
        string pageUrl = JpCommon.CombUrlTxt("list_columns.aspx", "page={0}&rnd={1}&cid={2}",
            "" + this.txtPage.Text + "", "" + System.Guid.NewGuid().ToString() + "", "" + this.txtcid_url.Text + "");

        Response.Write("<script>window.location='" + pageUrl + "';</script>");
    }