//上线下线 protected void btncolonline_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.txtisonline.Text == "true") col.online = "1"; else col.online = "0"; col.UpdateOnline(); 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>"); }