public void GetNLSetting(int UserModuleID, int PortalID)
 {
     try
     {
         NL_Controller         cont           = new NL_Controller();
         List <NL_SettingInfo> objSettingList = cont.GetNLSetting(UserModuleID, PortalID);
         string href   = string.Empty;
         string header = string.Empty;
         foreach (NL_SettingInfo objInfo in objSettingList)
         {
             header = "<h4>" + objInfo.ModuleDescription + "</h4>";
             href   = objInfo.UnSubscribePageName + PageExt;
         }
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
 public void GetNLSetting(int UserModuleID, int PortalID)
 {
     try
     {
         NL_Controller         cont           = new NL_Controller();
         List <NL_SettingInfo> objSettingList = cont.GetNLSetting(UserModuleID, PortalID);
         string href   = string.Empty;
         string header = string.Empty;
         foreach (NL_SettingInfo objInfo in objSettingList)
         {
             header = "<h4>" + objInfo.ModuleDescription + "</h4>";
             href   = objInfo.UnSubscribePageName + PageExt;
         }
         //moduleHeader.Text = header;
         UnSubscribe.Text = "<a id='btnUnsubscibe' href='" + href + "' class='sfUnSubscribeButton sfLocalee'>Click here to UnSubscribe</a>";
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
Beispiel #3
0
 public void GetNLSetting(int UserModuleID, int PortalID)
 {
     try
     {
         string modulePath = this.AppRelativeTemplateSourceDirectory;
         hst = AppLocalized.getLocale(modulePath);
         NL_Controller         cont           = new NL_Controller();
         List <NL_SettingInfo> objSettingList = cont.GetNLSetting(UserModuleID, PortalID);
         string href   = string.Empty;
         string header = string.Empty;
         foreach (NL_SettingInfo objInfo in objSettingList)
         {
             header = "<h2>" + getLocale("Subscribe") + "</h2><h4>" + getLocale("Our Newsletter") + "</h4>";
             href   = objInfo.UnSubscribePageName + PageExt;
         }
         moduleHeader.Text = header;
         UnSubscribe.Text  = "<a id='btnUnsubscibe' href='" + href + "' class='sfUnSubscribeButton'>" + getLocale("Click here to UnSubscribe") + "</a>";
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }