//更改状态 public void btn_CheckState_Click(object sender, EventArgs e) { var id = Hid_Id.Value; var state = Hid_State.Value; var result = _vocabulary.UpdateStateById(new Guid(id), int.Parse(state)); if (result) { MessageBox.AppendScript(this, "setTimeout(function(){ refreshGrid(); }, " + GlobalConfig.PageAutoRefreshDelayTime + ");"); } }