protected void BtnClear_Click(object sender, EventArgs e) { try { this.ClearControl(); this.ShowHideValidationMessage(false); GridEntity.DataSource = null; GridEntity.DataBind(); GridResetView.DataSource = null; GridResetView.DataBind(); this.divEmptyRow.InnerHtml = Searchcriteria; this.HideIntialView(true); lblAlertMsg.Visible = false; List <LblLanguage> lblLanguagelst = null; ILblLanguage mLanguageService = null; lblLanguagelst = new List <LblLanguage>(); mLanguageService = AppService.Create <ILblLanguage>(); mLanguageService.AppManager = ((IAppManager)Session["APP_MANAGER"]); // retrieve lblLanguagelst = mLanguageService.RetrieveLabel(((IAppManager)Session["APP_MANAGER"]).LoginUser.Id, "ACTIVITY"); Utility _objUtil = new Utility(); _objUtil.LoadGridLabels(lblLanguagelst, GridResetView); divGridHeader.Visible = false; this.hdrGridHeader.InnerText = string.Empty; } catch { throw; } }
protected void btnReSet_Click(object sender, EventArgs e) { try { if (!this.UpdateEntity()) { this.divMessage.InnerText = lblResetsuccessfully.Text; this.divMessage.Style.Add("display", "block"); this.ShowHideValidationMessage(true); this.FillActivitySummary(); this.ShowHideValidationMessage(true); GridResetView.DataSource = null; GridResetView.DataBind(); lblAlertMsg.Visible = false; //this.ClearControl(); txtComment.Value = ""; } } catch { throw; } }