protected void uiGridViewServices_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "EditService") { BLL.Services objData = new BLL.Services(); objData.LoadByPrimaryKey(Convert.ToInt32(e.CommandArgument.ToString())); uiTextBoxEnName.Text = objData.EnName; uiTextBoxArName.Text = objData.ArName; uiFCKeditorEnDesc.Value = Server.HtmlDecode(objData.EnDescription); uiFCKeditorArDesc.Value = Server.HtmlDecode(objData.ArDescription); uiPanelViewServices.Visible = false; uiPanelEdit.Visible = true; CurrentServices = objData; } else if (e.CommandName == "DeleteService") { BLL.Services objData = new BLL.Services(); objData.LoadByPrimaryKey(Convert.ToInt32(e.CommandArgument.ToString())); objData.MarkAsDeleted(); objData.Save(); BindData(); } }