/// <summary> /// 修改是否显示的状态 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void sbShow_Click(object sender, EventArgs e) { StateShow ub = (StateShow)sender; int index = ((GridViewRow)(ub.Parent.Parent)).RowIndex; int id = int.Parse(this.GridView1.DataKeys[index].Value.ToString()); // Song.Entities.Links entity = Business.Do <ILinks>().LinksSingle(id); entity.Lk_IsShow = !entity.Lk_IsShow; Business.Do <ILinks>().LinksSave(entity); BindData(null, null); }
void ShowMsg(string str) { StateShow.AppendText(str + "\r\n"); }