示例#1
0
        private static void GetEmailInfo()
        {
            NewsLetterBLL _objNewsletter = new NewsLetterBLL();
            DataTable     dtDetails      = _objNewsletter.GetEmailMarketingDetails();

            Version = dtDetails.Rows[0]["Version"].ToString();
            APIKey  = dtDetails.Rows[0]["ApiKey"].ToString();
        }
示例#2
0
 private void LoadMarketingDetails()
 {
     _objNewsLetter = new NewsLetterBLL();
     dtRows         = _objNewsLetter.GetEmailMarketingDetails();
     if (dtRows != null)
     {
         if (dtRows.Rows.Count > 0)
         {
             txtUserName.Text    = dtRows.Rows[0]["UserName"].ToString();
             txtPassword.Text    = dtRows.Rows[0]["Password"].ToString();
             txtAcceptType.Text  = dtRows.Rows[0]["AcceptType"].ToString();
             txtContentType.Text = dtRows.Rows[0]["ContentType"].ToString();
             txtVersion.Text     = dtRows.Rows[0]["APIVersion"].ToString();
             txtEmail.Text       = dtRows.Rows[0]["Email"].ToString();
             txtApiKey.Text      = dtRows.Rows[0]["ApiKey"] == null ? null : dtRows.Rows[0]["ApiKey"].ToString();
             btnAddDetails.Text  = "Update Details";
             btnReset.Text       = "Delete Details";
             ENid = Convert.ToInt32(dtRows.Rows[0]["NID"].ToString());
         }
     }
 }