private void DisplayData() { ReadFromData(); WriteToPage(); string dueDateFormat = HLConfigManager.Configurations.APFConfiguration.DueDateDisplayFormat; txtApfDate.Text = APFDueProvider.GetAPFDueDate(DistributorID, CountryCode).ToString(dueDateFormat, Thread.CurrentThread .CurrentCulture); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string level = APFDueProvider.GetDSLevel(); DateTime dt = APFDueProvider.GetAPFDueDate(DistributorID, Locale.Substring(3)); if (dt < DateTime.Now) { btnRemind.Visible = false; lblRemindltr.Text = string.Format(PlatformResources.GetGlobalResourceString("ErrorMessage", "APFFeeDuePastPopup"), dt.ToShortDateString()); } else if (dt > DateTime.Now) { lblRemindltr.Text = string.Format(PlatformResources.GetGlobalResourceString("ErrorMessage", "APFFeeDueFuturePopup"), dt.ToShortDateString()); } else if (dt.Date == DateTime.Now.Date) { lblRemindltr.Text = string.Format(PlatformResources.GetGlobalResourceString("ErrorMessage", "APFFeeDueTodayPopup"), dt.ToShortDateString()); } } }