Exemplo n.º 1
0
 private void BindGvData()
 {
     try
     {
         GvData.DataSource = objLtmsService.GetGovermentOrderDtlbyStatus(Convert.ToInt16(ddlStatus.SelectedValue));
         GvData.DataBind();
         GvData.Columns[0].Visible = objMenuOptions.AllowEdit;
         gridDiv.Visible           = objMenuOptions.AllowView;
         btnPrint.Visible          = (GvData.Rows.Count > 0 ? true : false);
     }
     catch (Exception Ex)
     {
         objValidateData.SaveSystemErrorLog(Ex, Request.UserHostAddress);
         var message = new JavaScriptSerializer().Serialize("Some Error has occurred while performing your activity. Please contact the System Administrator for further assistance.");
         var script  = string.Format("alert({0});", message);
         ScriptManager.RegisterClientScriptBlock(this, GetType(), "", script, true);
     }
 }