//protected void cmdEmpty_Click(object sender, EventArgs e) //{ // txtID.Text = string.Empty; // txtParams.Text = string.Empty; // dgrNameFollowLang.DataSource = null; // dgrNameFollowLang.DataBind(); // txtUrl.Text = string.Empty; // chkEnable.Checked = false; // chkVisble.Checked = false; //} protected void cmdDelete_Click(object sender, EventArgs e) { try { int commandId = ConvertUtility.ToInt32(txtID.Text); CommandController.DeleteCommand(commandId); lblUpdateStatus.Text = MiscUtility.MSG_UPDATE_SUCCESS; } catch (Exception ex) { lblUpdateStatus.Text = ex.Message; } }