Beispiel #1
0
 private void GetNewsLetterSettings()
 {
     List<KeyValuePair<string, object>> ParaMeterCollection = new List<KeyValuePair<string, object>>();
     ParaMeterCollection.Add(new KeyValuePair<string, object>("@UserModuleID", usermoduleIDControl));
     ParaMeterCollection.Add(new KeyValuePair<string, object>("@PortalID", GetPortalID));
     SQLHandler objSql = new SQLHandler();
     newsLetterSettingObj = objSql.ExecuteAsObject<NewsLetterSettingsInfo>("dbo.sp_NewsLetterSettingsGetAll", ParaMeterCollection);
     lblHelpText.Text = "<p>" + newsLetterSettingObj.SubscriptionHelpText.ToString() + "</p>";
     txtWatermarkExtender.WatermarkText = newsLetterSettingObj.TextBoxWaterMarkText.ToString() != "" ? newsLetterSettingObj.TextBoxWaterMarkText.ToString() : "Email Address Required";
     btnSubscribe.Text = newsLetterSettingObj.SubmitButtonText.ToString();
     btnSubscribe.ToolTip = newsLetterSettingObj.SubmitButtonText.ToString();
 }
Beispiel #2
0
 public NewsLetterSettingsInfo GetNewsLetterSetting(int usermoduleIDControl, int portalID)
 {
     try
     {
         NewLetterSubscriberProvider objProvider = new NewLetterSubscriberProvider();
         NewsLetterSettingsInfo      objNewsletterSettingInfo = objProvider.GetNewsLetterSetting(usermoduleIDControl, portalID);
         return(objNewsletterSettingInfo);
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #3
0
 public NewsLetterSettingsInfo GetNewsLetterSetting(int usermoduleIDControl, int portalID)
 {
     try
     {
         List <KeyValuePair <string, object> > ParaMeterCollection = new List <KeyValuePair <string, object> >();
         ParaMeterCollection.Add(new KeyValuePair <string, object>("@UserModuleID", usermoduleIDControl));
         ParaMeterCollection.Add(new KeyValuePair <string, object>("@PortalID", portalID));
         SQLHandler             objSql = new SQLHandler();
         NewsLetterSettingsInfo newsLetterSettingObj = new NewsLetterSettingsInfo();
         newsLetterSettingObj = objSql.ExecuteAsObject <NewsLetterSettingsInfo>("dbo.sp_NewsLetterSettingsGetAll", ParaMeterCollection);
         return(newsLetterSettingObj);
     }
     catch (Exception)
     {
         throw;
     }
 }
 public NewsLetterSettingsInfo GetNewsLetterSetting(int usermoduleIDControl,int portalID)
 {
     try
     {
         List<KeyValuePair<string, object>> ParaMeterCollection = new List<KeyValuePair<string, object>>();
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@UserModuleID", usermoduleIDControl));
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@PortalID", portalID));
         SQLHandler objSql = new SQLHandler();
         NewsLetterSettingsInfo newsLetterSettingObj = new NewsLetterSettingsInfo();
         newsLetterSettingObj = objSql.ExecuteAsObject<NewsLetterSettingsInfo>("dbo.sp_NewsLetterSettingsGetAll", ParaMeterCollection);
         return newsLetterSettingObj;
     }
     catch (Exception)
     {
         throw;
     }
 }