private void BindClaimGvData() { try { gvClaimUploadDtl.DataSource = objLtmsService.GetDealerDepositDtlByReqId(Convert.ToInt64(hdUniqueId.Value), -3); gvClaimUploadDtl.DataBind(); } 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); } }