Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string strOperatorId  = commonVariables.OperatorId;
        string strAffiliateId = string.Empty;

        xeErrors = commonVariables.ErrorsXML;
        System.Xml.Linq.XElement xeResources = null;
        commonCulture.appData.getLocalResource(out xeResources);
        customConfig.OperatorSettings opSettings = new customConfig.OperatorSettings("W88");

        if (!Page.IsPostBack)
        {
            //if (string.IsNullOrEmpty(commonVariables.GetSessionVariable("AffiliateId"))) { if (string.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("AffiliateId"))) { commonVariables.SetSessionVariable("AffiliateId", HttpContext.Current.Request.QueryString.Get("AffiliateId")); } }
            //strAffiliateId = string.IsNullOrEmpty(commonVariables.GetSessionVariable("AffiliateId")) ? string.Empty : Convert.ToString(commonVariables.GetSessionVariable("AffiliateId"));

            lblUsername.Text = commonCulture.ElementValues.getResourceString("lblUsername", xeResources);
            txtUsername.Attributes.Add("PLACEHOLDER", lblUsername.Text);

            lblPassword.Text = commonCulture.ElementValues.getResourceString("lblPassword", xeResources);
            txtPassword.Attributes.Add("PLACEHOLDER", lblPassword.Text);

            lblEmail.Text = commonCulture.ElementValues.getResourceString("lblEmailAddress", xeResources);
            txtEmail.Attributes.Add("PLACEHOLDER", lblEmail.Text);

            lblDOB.Text = commonCulture.ElementValues.getResourceString("lblDOB", xeResources);

            lblContact.Text = commonCulture.ElementValues.getResourceString("lblContact", xeResources);
            txtContact.Attributes.Add("PLACEHOLDER", lblContact.Text);

            //lblFirstName.Text = commonCulture.ElementValues.getResourceString("lblFirstName", xeResources);
            //txtFirstName.Attributes.Add("PLACEHOLDER", lblFirstName.Text);

            //lblLastName.Text = commonCulture.ElementValues.getResourceString("lblLastName", xeResources);
            //txtLastName.Attributes.Add("PLACEHOLDER", lblLastName.Text);

            lblFullName.Text = commonCulture.ElementValues.getResourceString("lblFullName", xeResources);
            txtFullName.Attributes.Add("PLACEHOLDER", lblFullName.Text);

            lblAccount.Text = commonCulture.ElementValues.getResourceString("lblAccount", xeResources);
            txtAccount.Attributes.Add("PLACEHOLDER", lblAccount.Text);

            lblReferralID.Text = commonCulture.ElementValues.getResourceString("lblReferralID", xeResources);
            txtReferralID.Attributes.Add("PLACEHOLDER", lblReferralID.Text);

            lblAddress.Text = commonCulture.ElementValues.getResourceString("lblAddress", xeResources);
            txtAddress.Attributes.Add("PLACEHOLDER", lblAddress.Text);

            lblCity.Text = commonCulture.ElementValues.getResourceString("lblCity", xeResources);
            txtCity.Attributes.Add("PLACEHOLDER", lblCity.Text);

            lblPostal.Text = commonCulture.ElementValues.getResourceString("lblPostal", xeResources);
            txtPostal.Attributes.Add("PLACEHOLDER", lblPostal.Text);

            lblWebsiteUrl.Text = commonCulture.ElementValues.getResourceString("lblWebsiteUrl", xeResources);

            lblURL1.Text = commonCulture.ElementValues.getResourceString("lblURL1", xeResources);
            txtURL1.Attributes.Add("PLACEHOLDER", lblURL1.Text);

            lblURL2.Text = commonCulture.ElementValues.getResourceString("lblURL2", xeResources);
            txtURL2.Attributes.Add("PLACEHOLDER", lblURL2.Text);

            lblURL3.Text = commonCulture.ElementValues.getResourceString("lblURL3", xeResources);
            txtURL3.Attributes.Add("PLACEHOLDER", lblURL3.Text);

            lblDesc.Text = commonCulture.ElementValues.getResourceString("lblDesc", xeResources);
            txtDesc.Attributes.Add("PLACEHOLDER", lblDesc.Text);

            lblCaptcha.Text = commonCulture.ElementValues.getResourceString("lblCaptcha", xeResources);
            txtCaptcha.Attributes.Add("PLACEHOLDER", lblCaptcha.Text);

            lblDisclaimer.InnerText = commonCulture.ElementValues.getResourceString("lblDisclaimer", xeResources);

            btnSubmit.Text      = commonCulture.ElementValues.getResourceString("btnSubmit", xeResources);
            btnCancel.InnerText = commonCulture.ElementValues.getResourceString("btnCancel", xeResources);

            #region PhoneCountryCode
            System.Data.DataSet dsCountryInfo = null;

            using (wsMemberMS1.memberWSSoapClient wsInstance = new wsMemberMS1.memberWSSoapClient())
            {
                dsCountryInfo = wsInstance.GetCountryInfo(Convert.ToInt64(strOperatorId));

                if (dsCountryInfo.Tables[0].Rows.Count > 0)
                {
                    foreach (System.Data.DataRow drPhoneCountryCode in dsCountryInfo.Tables[0].Select("", "countryPhoneCode ASC"))
                    {
                        string strProcessRemark   = "Register: GetCountryInfo" + strOperatorId;
                        int    intProcessSerialId = 0;
                        intProcessSerialId += 1;
                        commonAuditTrail.appendLog("system", "Register", "ParameterValidation", "DataBaseManager.DLL", "", "", "", "", strProcessRemark, Convert.ToString(intProcessSerialId), "", true);

                        drpContactCountry.Items.Add(new ListItem(string.Format("+ {0}", Convert.ToString(drPhoneCountryCode["countryPhoneCode"])), Convert.ToString(drPhoneCountryCode["countryPhoneCode"])));
                    }
                }
            }
            #endregion

            #region Currencies
            string        arrStrCurrencies = opSettings.Values.Get("Currencies");
            List <string> lstCurrencies    = arrStrCurrencies.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries).Select(p => p.Trim()).ToList();

            drpCurrency.Items.Insert(0, new ListItem(commonCulture.ElementValues.getResourceString("drpCurrencySelect", xeResources), "-1"));

            foreach (string currency in lstCurrencies)
            {
                string strProcessRemark   = "currency: " + currency;
                int    intProcessSerialId = 0;
                intProcessSerialId += 1;
                commonAuditTrail.appendLog("system", "Register", "ParameterValidation", "DataBaseManager.DLL", "", "", "", "", strProcessRemark, Convert.ToString(intProcessSerialId), "", true);

                drpCurrency.Items.Add(new ListItem(commonCulture.ElementValues.getResourceXPathString("Currency/" + currency, xeResources), currency));
            }
            #endregion

            #region Country
            using (wsAffiliateMS1.affiliateWSSoapClient wsInstanceAff = new wsAffiliateMS1.affiliateWSSoapClient("affiliateWSSoap"))
            {
                System.Data.DataSet ds_country = wsInstanceAff.GetCountryList();

                if (ds_country.Tables[0].Rows.Count > 0)
                {
                    drpCountry.DataTextField  = "countryName";
                    drpCountry.DataValueField = "countryCode";
                    drpCountry.DataSource     = ds_country.Tables[0];
                    drpCountry.DataBind();

                    drpCountry.Items.Insert(0, new ListItem(commonCulture.ElementValues.getResourceString("drpCountrySelect", xeResources), "-1"));
                }
            }
            #endregion

            #region Language
            string[] langcodes = System.Configuration.ConfigurationManager.AppSettings.Get("list_language_code").Split(',');
            string[] langNames = System.Configuration.ConfigurationManager.AppSettings.Get("list_language_translation").Split(',');

            drpLanguage.Items.Insert(0, new ListItem(commonCulture.ElementValues.getResourceString("drpLanguageSelect", xeResources), "-1"));

            for (int i = 0; i < langcodes.Length; i++)
            {
                drpLanguage.Items.Add(new ListItem(langNames[i], langcodes[i]));
            }
            #endregion

            #region Commission Type
            drpCommissionType.Items.Insert(0, new ListItem(commonCulture.ElementValues.getResourceString("lblCommissionType", xeResources), "-1"));
            drpCommissionType.Items.Add(new ListItem(commonCulture.ElementValues.getResourceString("lblRevenueShare", xeResources).ToString(), "Revenue Share"));
            #endregion

            //drpDOB.Items.Add(new ListItem(commonCulture.ElementValues.getResourceString("lblDOB", xeResources), string.Empty, true));

            int intDay = 0;
            foreach (int vintDay in new int[31])
            {
                intDay++; drpDay.Items.Add(new ListItem((intDay).ToString("0#"), Convert.ToString(intDay)));
            }
            foreach (System.Xml.Linq.XElement xeMonth in xeResources.Element("Calendar").Elements())
            {
                drpMonth.Items.Add(new ListItem(xeMonth.Value, Convert.ToString(xeMonth.Name).Replace("m", "")));
            }
            for (int intYear = System.DateTime.Now.Year - 18; intYear >= System.DateTime.Now.Year - 99; intYear--)
            {
                drpYear.Items.Add(new ListItem(Convert.ToString(intYear)));
            }

            //txtAffiliateID.Text = strAffiliateId;
        }
    }
Beispiel #2
0
    //else { Response.Redirect(Request.RawUrl); }

    protected void Page_Load(object sender, EventArgs e)
    {
        string strOperatorId  = commonVariables.OperatorId;
        string strAffiliateId = string.Empty;

        xeErrors = commonVariables.ErrorsXML;
        //System.Xml.Linq.XElement xeResources = null;
        //commonCulture.appData.getLocalResource(out xeResources);

        //xeErrors = commonVariables.ErrorsXML;
        commonCulture.appData.getRootResource("/AccountInfo.aspx", out xeResources);
        commonCulture.appData.getRootResource("/security_question.aspx", out xeResourcesSecQues);

        customConfig.OperatorSettings opSettings = new customConfig.OperatorSettings("W88");

        //testing
        //System.Web.HttpContext.Current.Session["AffiliateId"] = "20264";

        if (!Page.IsPostBack)
        {
            using (wsAffiliateMS1.affiliateWSSoapClient wsInstanceAff = new wsAffiliateMS1.affiliateWSSoapClient("affiliateWSSoap"))
            {
                DataSet dsAffMember = wsInstanceAff.GetAffiliateMemberInfoByID(long.Parse(commonCookie.CookieAffiliateId));
                if (dsAffMember.Tables.Count > 0)
                {
                    if (dsAffMember.Tables[0].Rows.Count > 0)
                    {
                        //if (string.IsNullOrEmpty(commonVariables.GetSessionVariable("AffiliateId"))) { if (string.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("AffiliateId"))) { commonVariables.SetSessionVariable("AffiliateId", HttpContext.Current.Request.QueryString.Get("AffiliateId")); } }
                        //strAffiliateId = string.IsNullOrEmpty(commonVariables.GetSessionVariable("AffiliateId")) ? string.Empty : Convert.ToString(commonVariables.GetSessionVariable("AffiliateId"));

                        lblFullName.Text       = commonCulture.ElementValues.getResourceString("lblFullName", xeResources);
                        lblMemberFullName.Text = dsAffMember.Tables[0].Rows[0]["firstname"].ToString();

                        lblUsername.Text       = commonCulture.ElementValues.getResourceString("lblUsername", xeResources);
                        lblMemberUsername.Text = dsAffMember.Tables[0].Rows[0]["affiliateUser"].ToString();

                        lblEmail.Text       = commonCulture.ElementValues.getResourceString("lblEmailAddress", xeResources);
                        lblMemberEmail.Text = dsAffMember.Tables[0].Rows[0]["email"].ToString();

                        lblCurrency.Text       = commonCulture.ElementValues.getResourceString("lblCurrency", xeResources);
                        lblMemberCurrency.Text = dsAffMember.Tables[0].Rows[0]["currency"].ToString();

                        lblDOB.Text = commonCulture.ElementValues.getResourceString("lblDOB", xeResources);

                        drpDay.SelectedValue   = ((DateTime)dsAffMember.Tables[0].Rows[0]["dob"]).Year.ToString();
                        drpMonth.SelectedValue = ((DateTime)dsAffMember.Tables[0].Rows[0]["dob"]).Month.ToString();
                        drpYear.SelectedValue  = ((DateTime)dsAffMember.Tables[0].Rows[0]["dob"]).Day.ToString();

                        lblContact.Text = commonCulture.ElementValues.getResourceString("lblContact", xeResources);
                        //txtContact.Attributes.Add("PLACEHOLDER", lblContact.Text);
                        //txtContact.Attributes.Add("PLACEHOLDER", lblContact.Text);

                        string mobilno = dsAffMember.Tables[0].Rows[0]["mobileNo"].ToString();
                        if (mobilno.Contains("-"))
                        {
                            string[] mobilenosplit = mobilno.Split('-');
                            drpContactCountry.SelectedValue = mobilenosplit[0];
                            txtContact.Text = mobilenosplit[1];
                        }
                        else
                        {
                            drpContactCountry.SelectedValue = "-1";
                            txtContact.Text = mobilno;
                        }

                        lblCountry.Text          = commonCulture.ElementValues.getResourceString("lblCountry", xeResources);
                        drpCountry.SelectedValue = dsAffMember.Tables[0].Rows[0]["countryCode"].ToString();

                        lblAccount.Text = commonCulture.ElementValues.getResourceString("lblAccount", xeResources);
                        txtAccount.Text = dsAffMember.Tables[0].Rows[0]["contactMessenger"].ToString();

                        lblAddress.Text = commonCulture.ElementValues.getResourceString("lblAddress", xeResources);
                        txtAddress.Text = dsAffMember.Tables[0].Rows[0]["address"].ToString();

                        lblCity.Text   = commonCulture.ElementValues.getResourceString("lblCity", xeResources);
                        txtCity.Text   = dsAffMember.Tables[0].Rows[0]["city"].ToString();
                        txtPostal.Text = dsAffMember.Tables[0].Rows[0]["postal"].ToString();

                        lblWebsiteUrl.Text = commonCulture.ElementValues.getResourceString("lblWebsiteUrl", xeResources);

                        System.Web.HttpContext.Current.Session["urlID1"] = "";
                        System.Web.HttpContext.Current.Session["url1"]   = "";

                        System.Web.HttpContext.Current.Session["urlID2"] = "";
                        System.Web.HttpContext.Current.Session["url2"]   = "";

                        System.Web.HttpContext.Current.Session["urlID3"] = "";
                        System.Web.HttpContext.Current.Session["url3"]   = "";


                        DataSet dsAffMemberWebSite = wsInstanceAff.GetAffiliateMemberWebsite(long.Parse(commonCookie.CookieAffiliateId));

                        //check by individual

                        if (dsAffMemberWebSite.Tables[0].Rows.Count > 0)
                        {
                            if (!string.IsNullOrEmpty(dsAffMemberWebSite.Tables[0].Rows[0]["AffiliateMemberURLID"].ToString()))
                            {
                                System.Web.HttpContext.Current.Session["urlID1"] = dsAffMemberWebSite.Tables[0].Rows[0]["AffiliateMemberURLID"].ToString();
                                System.Web.HttpContext.Current.Session["url1"]   = dsAffMemberWebSite.Tables[0].Rows[0]["affiliateURL"].ToString();
                                txtURL1.Text = dsAffMemberWebSite.Tables[0].Rows[0]["affiliateURL"].ToString();
                            }
                            else
                            {
                                lblURL1.Text = commonCulture.ElementValues.getResourceString("lblURL1", xeResources);
                                txtURL1.Attributes.Add("PLACEHOLDER", lblURL1.Text);
                            }

                            if (dsAffMemberWebSite.Tables[0].Rows.Count >= 2 && !string.IsNullOrEmpty(dsAffMemberWebSite.Tables[0].Rows[1]["AffiliateMemberURLID"].ToString()))
                            {
                                System.Web.HttpContext.Current.Session["urlID2"] = dsAffMemberWebSite.Tables[0].Rows[1]["AffiliateMemberURLID"].ToString();
                                System.Web.HttpContext.Current.Session["url2"]   = dsAffMemberWebSite.Tables[0].Rows[1]["affiliateURL"].ToString();
                                txtURL2.Text = dsAffMemberWebSite.Tables[0].Rows[1]["affiliateURL"].ToString();
                            }
                            else
                            {
                                lblURL2.Text = commonCulture.ElementValues.getResourceString("lblURL2", xeResources);
                                txtURL2.Attributes.Add("PLACEHOLDER", lblURL2.Text);
                            }

                            if (dsAffMemberWebSite.Tables[0].Rows.Count >= 3 && !string.IsNullOrEmpty(dsAffMemberWebSite.Tables[0].Rows[2]["AffiliateMemberURLID"].ToString()))
                            {
                                System.Web.HttpContext.Current.Session["urlID3"] = dsAffMemberWebSite.Tables[0].Rows[2]["AffiliateMemberURLID"].ToString();
                                System.Web.HttpContext.Current.Session["url3"]   = dsAffMemberWebSite.Tables[0].Rows[2]["affiliateURL"].ToString();
                                txtURL3.Text = dsAffMemberWebSite.Tables[0].Rows[2]["affiliateURL"].ToString();
                            }
                            else
                            {
                                lblURL3.Text = commonCulture.ElementValues.getResourceString("lblURL3", xeResources);
                                txtURL3.Attributes.Add("PLACEHOLDER", lblURL3.Text);
                            }
                        }

                        else
                        {
                            lblURL1.Text = commonCulture.ElementValues.getResourceString("lblURL1", xeResources);
                            txtURL1.Attributes.Add("PLACEHOLDER", lblURL1.Text);

                            lblURL2.Text = commonCulture.ElementValues.getResourceString("lblURL2", xeResources);
                            txtURL2.Attributes.Add("PLACEHOLDER", lblURL2.Text);

                            lblURL3.Text = commonCulture.ElementValues.getResourceString("lblURL3", xeResources);
                            txtURL3.Attributes.Add("PLACEHOLDER", lblURL3.Text);
                        }

                        lblLanguage.Text       = commonCulture.ElementValues.getResourceString("lblLanguage", xeResources);
                        lblCommissionType.Text = commonCulture.ElementValues.getResourceString("lblCommissionType", xeResources);

                        lblSecQues.Text = commonCulture.ElementValues.getResourceString("lblSecQues", xeResources);

                        lblSecAns.Text = commonCulture.ElementValues.getResourceString("lblSecAns", xeResources);
                        txtSecAns.Text = dsAffMember.Tables[0].Rows[0]["securityAnswer"].ToString();

                        lblBankAccName.Text = commonCulture.ElementValues.getResourceString("lblBankAccName", xeResources);
                        txtBankAccName.Text = dsAffMember.Tables[0].Rows[0]["BankAccName"].ToString();

                        lblBankAccNo.Text = commonCulture.ElementValues.getResourceString("lblBankAccNo", xeResources);
                        txtBankAccNo.Text = dsAffMember.Tables[0].Rows[0]["BankAccNumber"].ToString();

                        lblSwiftCode.Text = commonCulture.ElementValues.getResourceString("lblSwiftCode", xeResources);
                        txtSwiftCode.Text = dsAffMember.Tables[0].Rows[0]["BankSwiftCode"].ToString();

                        lblBankName.Text = commonCulture.ElementValues.getResourceString("lblBankName", xeResources);
                        txtBankName.Text = dsAffMember.Tables[0].Rows[0]["BankName"].ToString();

                        lblBankAdd.Text = commonCulture.ElementValues.getResourceString("lblBankAdd", xeResources);
                        txtBankAdd.Text = dsAffMember.Tables[0].Rows[0]["BankAddress"].ToString();

                        //lblCaptcha.Text = commonCulture.ElementValues.getResourceString("lblCaptcha", xeResources);
                        //txtCaptcha.Attributes.Add("PLACEHOLDER", lblCaptcha.Text);

                        //lblDisclaimer.InnerText = commonCulture.ElementValues.getResourceString("lblDisclaimer", xeResources);

                        btnUpdate.Text      = commonCulture.ElementValues.getResourceString("lblUpdate", xeResources);
                        btnCancel.InnerText = commonCulture.ElementValues.getResourceString("btnCancel", xeResources);

                        #region PhoneCountryCode
                        System.Data.DataSet dsCountryInfo = null;

                        using (wsMemberMS1.memberWSSoapClient wsInstance = new wsMemberMS1.memberWSSoapClient())
                        {
                            dsCountryInfo = wsInstance.GetCountryInfo(Convert.ToInt64(strOperatorId));

                            if (dsCountryInfo.Tables[0].Rows.Count > 0)
                            {
                                foreach (System.Data.DataRow drPhoneCountryCode in dsCountryInfo.Tables[0].Select("", "countryPhoneCode ASC"))
                                {
                                    string strProcessRemark   = "Register: GetCountryInfo" + strOperatorId;
                                    int    intProcessSerialId = 0;
                                    intProcessSerialId += 1;
                                    commonAuditTrail.appendLog("system", "Register", "ParameterValidation", "DataBaseManager.DLL", "", "", "", "", strProcessRemark, Convert.ToString(intProcessSerialId), "", true);

                                    drpContactCountry.Items.Add(new ListItem(string.Format("+ {0}", Convert.ToString(drPhoneCountryCode["countryPhoneCode"])), Convert.ToString(drPhoneCountryCode["countryPhoneCode"])));
                                }
                            }
                        }
                        #endregion

                        #region Currencies
                        //string arrStrCurrencies = opSettings.Values.Get("Currencies");
                        //List<string> lstCurrencies = arrStrCurrencies.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries).Select(p => p.Trim()).ToList();

                        //drpCurrency.Items.Insert(0, new ListItem(commonCulture.ElementValues.getResourceString("drpCurrencySelect", xeResources), "-1"));

                        //foreach (string currency in lstCurrencies)
                        //{
                        //    string strProcessRemark = "currency: " + currency;
                        //    int intProcessSerialId = 0;
                        //    intProcessSerialId += 1;
                        //    commonAuditTrail.appendLog("system", "Register", "ParameterValidation", "DataBaseManager.DLL", "", "", "", "", strProcessRemark, Convert.ToString(intProcessSerialId), "", true);

                        //    drpCurrency.Items.Add(new ListItem(commonCulture.ElementValues.getResourceXPathString("Currency/" + currency, xeResources), currency));
                        //}
                        #endregion

                        #region Country
                        //using (wsAffiliateMS1.affiliateWSSoapClient wsInstanceAff = new wsAffiliateMS1.affiliateWSSoapClient("affiliateWSSoap"))
                        //{

                        System.Data.DataSet ds_country = wsInstanceAff.GetCountryList();

                        if (ds_country.Tables[0].Rows.Count > 0)
                        {
                            drpCountry.DataTextField  = "countryName";
                            drpCountry.DataValueField = "countryCode";
                            drpCountry.DataSource     = ds_country.Tables[0];
                            drpCountry.DataBind();

                            drpCountry.Items.Insert(0, new ListItem(commonCulture.ElementValues.getResourceString("drpCountrySelect", xeResources), "-1"));
                        }
                        //}
                        #endregion

                        #region Language

                        string[] langcodes = System.Configuration.ConfigurationManager.AppSettings.Get("list_language_code").Split(',');
                        string[] langNames = System.Configuration.ConfigurationManager.AppSettings.Get("list_language_translation").Split(',');

                        drpLanguage.Items.Insert(0, new ListItem(commonCulture.ElementValues.getResourceString("drpLanguageSelect", xeResources), "-1"));

                        for (int i = 0; i < langcodes.Length; i++)
                        {
                            drpLanguage.Items.Add(new ListItem(langNames[i], langcodes[i]));
                        }

                        drpLanguage.SelectedValue = dsAffMember.Tables[0].Rows[0]["languageCode"].ToString();

                        #endregion

                        #region Commission Type

                        drpCommissionType.Items.Insert(0, new ListItem(commonCulture.ElementValues.getResourceString("lblCommissionType", xeResources), "-1"));
                        drpCommissionType.Items.Add(new ListItem(commonCulture.ElementValues.getResourceString("lblRevenueShare", xeResources).ToString(), "Revenue Share"));

                        drpCommissionType.SelectedValue = dsAffMember.Tables[0].Rows[0]["comType"].ToString();

                        #endregion

                        #region Security Question


                        //drpSecQues.Items.Insert(0, new ListItem(commonCulture.ElementValues.getResourceString("lblSecQues", xeResources), "-1"));

                        for (int i = 1; i <= 6; i++)
                        {
                            drpSecQues.Items.Add(new ListItem(commonCulture.ElementValues.getResourceString("lblsecurityquestion" + i, xeResourcesSecQues), "security_question_" + i));
                        }

                        drpSecQues.SelectedValue = dsAffMember.Tables[0].Rows[0]["securityQuestion"].ToString();

                        #endregion

                        int intDay = 0;
                        foreach (int vintDay in new int[31])
                        {
                            intDay++; drpDay.Items.Add(new ListItem((intDay).ToString("0#"), Convert.ToString(intDay)));
                        }
                        foreach (System.Xml.Linq.XElement xeMonth in xeResources.Element("Calendar").Elements())
                        {
                            drpMonth.Items.Add(new ListItem(xeMonth.Value, Convert.ToString(xeMonth.Name).Replace("m", "")));
                        }
                        for (int intYear = System.DateTime.Now.Year - 18; intYear >= System.DateTime.Now.Year - 99; intYear--)
                        {
                            drpYear.Items.Add(new ListItem(Convert.ToString(intYear)));
                        }

                        //txtAffiliateID.Text = strAffiliateId;
                    }
                }
            }
        }
    }