protected void Page_Load(object sender, EventArgs e) { ServiceInfo objSvcInfo; CommonUtil objComUtil = new CommonUtil(); if (Session == null || Session["serviceInfo"] == null) { objSvcInfo = new ServiceInfo(); } else { objSvcInfo = (ServiceInfo)Session["serviceInfo"]; } //set the master page controls translated text lnkTnC.InnerHtml = objComUtil.getTransText(lnkTnC.Attributes["name"]); lnkDisclaimer.InnerText = objComUtil.getTransText(lnkDisclaimer.Attributes["name"]); lnkFullSite.InnerText = objComUtil.getTransText(lnkFullSite.Attributes["name"]); btnBack.InnerHtml = objComUtil.getTransText("Back"); }
protected void Page_Load(object sender, EventArgs e) { ServicePresenter objSerPre = new ServicePresenter(); CommonUtil objCommonUtil = new CommonUtil(); try { PropertyInfo propertyInfo = ucForeCast.GetType().GetProperty("Filter"); propertyInfo.SetValue(ucForeCast, Convert.ChangeType(false, propertyInfo.PropertyType), null); } catch (Exception ex) { AgriCastException currEx = new AgriCastException(objSerPre.GetServiceDetails(), ex); AgriCastLogger.Publish(currEx, AgriCastLogger.LogType.Error); HttpContext.Current.Session["ErrorMessage"] = objCommonUtil.getTransText(Constants.MOB_LOAD_FAILURE) + " : " + ex.Message.ToString(); } }