コード例 #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();
 }
コード例 #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;
     }
 }
コード例 #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;
     }
 }
コード例 #4
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;
     }
 }