예제 #1
0
        protected void BtnSignupModalSubmit_Click(Object sender, EventArgs e)
        {
            string         encryptedPwd = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Value, "SHA1");
            EndUserDetails eu           = new EndUserDetails()
            {
                EmailId          = txtEmailAddress.Value,
                LoginID_Username = txtLoginID_Username.Value.ToString(),
                Password         = encryptedPwd,
                Personfirstname  = txtFirstName.Value,
                PersonMiddleName = txtMiddleName.Value,
                PersonLastName   = txtLastName.Value,
                PersonGender     = ddlGender.Value,
                AddressEntity    = new AddressEntity()
                {
                    Flat_House_Number = txtFlat_House_no.Value,
                    Locality_Street   = ddlStreet_Locality.Value,
                    LocalityId        = ddlStreet_Locality.DataValueField,
                    City     = ddlCities.DataTextField,
                    CityId   = ddlCities.DataValueField,
                    State    = "UP",
                    StateId  = "1",
                    Country  = ddlCountry.DataValueField,
                    Zipcode  = txtZipcode.Value,
                    LandMark = txtLandmark.Value
                },
                PersonContactNumber = txtMobileNumber.Value,
                LandLine            = txtLandlineNumber.Value,
                UserType            = "EU"
            };
            string UIDGenerated = bll.GetUIDGenerated(eu.LoginID_Username);
            int    status       = bll.CreateMyAccountSignup(eu);

            SendActivateAccountEmail(eu.EmailId, eu.LoginID_Username, UIDGenerated);
            Response.Write("<script>alert('Called');</script>");
        }