Пример #1
0
        protected void Create_User()
        {
            try
            {
                Membership.CreateUser(tbUsername.Text, tbPassword.Text, tbEmail.Text);
                iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                iBiz.FinPro.UserProfile.objUserProfile oProfile = new iBiz.FinPro.UserProfile.objUserProfile();

                oProfile.userEmail      = tbEmail.Text;
                oProfile.userFirstName  = tbFirstName.Text;
                oProfile.userIsActive   = true;
                oProfile.userIsOfficial = false;
                oProfile.userLastName   = tbLastName.Text;

                bProfile.Add(oProfile);

                Response.Write("User has been Created.");
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                //    Membership.CreateUser("admin", "humabilal786", "*****@*****.**");
                //    iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                //    iBiz.FinPro.UserProfile.objUserProfile oProfile = new iBiz.FinPro.UserProfile.objUserProfile();

                //    oProfile.userEmail = "*****@*****.**";
                //    oProfile.userFirstName = "Bilal";
                //    oProfile.userIsActive = true;
                //    oProfile.userIsOfficial = false;
                //    oProfile.userLastName = "Muhammad";

                //    bProfile.Add(oProfile);


                Membership.CreateUser("admin", "admin123", "*****@*****.**");
                iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                iBiz.FinPro.UserProfile.objUserProfile oProfile = new iBiz.FinPro.UserProfile.objUserProfile();

                oProfile.userEmail      = "*****@*****.**";
                oProfile.userFirstName  = "Bilal";
                oProfile.userIsActive   = true;
                oProfile.userIsOfficial = true;
                oProfile.userLastName   = "Muhammad";

                bProfile.Add(oProfile);


                //Membership.CreateUser("naeem", "naeem786", "*****@*****.**");
                ////iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                //oProfile = new iBiz.FinPro.UserProfile.objUserProfile();
                //oProfile.userEmail = "*****@*****.**";
                //oProfile.userFirstName = "Naeem";
                //oProfile.userIsActive = true;
                //oProfile.userIsOfficial = false;
                //oProfile.userLastName = "Akhtar";
                //bProfile.Add(oProfile);


                ////Rafphi Qadeer

                //Membership.CreateUser("rafphi", "qadeer786", "*****@*****.**");

                //oProfile = new iBiz.FinPro.UserProfile.objUserProfile();
                //oProfile.userEmail = "*****@*****.**";
                //oProfile.userFirstName = "Rafphi";
                //oProfile.userIsActive = true;
                //oProfile.userIsOfficial = false;
                //oProfile.userLastName = "Qadeer";
                //bProfile.Add(oProfile);


                //Membership.CreateUser("zeeshan", "zeeshantrd786", "*****@*****.**");

                //oProfile = new iBiz.FinPro.UserProfile.objUserProfile();
                //oProfile.userEmail = "*****@*****.**";
                //oProfile.userFirstName = "Zeeshan";
                //oProfile.userIsActive = true;
                //oProfile.userIsOfficial = false;
                //oProfile.userLastName = "Aftab";
                //bProfile.Add(oProfile);


                //Membership.CreateUser("admin", "humabilal786", "*****@*****.**");
                //iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                //iBiz.FinPro.UserProfile.objUserProfile oProfile = new iBiz.FinPro.UserProfile.objUserProfile();

                //oProfile.userEmail = "*****@*****.**";
                //oProfile.userFirstName = "Bilal";
                //oProfile.userIsActive = true;
                //oProfile.userIsOfficial = false;
                //oProfile.userLastName = "Muhammad";

                //bProfile.Add(oProfile);


                //Membership.CreateUser("admin", "humabilal786", "*****@*****.**");
                //iBiz.FinPro.UserProfile bProfile = new iBiz.FinPro.UserProfile();
                //iBiz.FinPro.UserProfile.objUserProfile oProfile = new iBiz.FinPro.UserProfile.objUserProfile();

                //oProfile.userEmail = "*****@*****.**";
                //oProfile.userFirstName = "Bilal";
                //oProfile.userIsActive = true;
                //oProfile.userIsOfficial = false;
                //oProfile.userLastName = "Muhammad";

                //bProfile.Add(oProfile);
            }
            catch (Exception)
            {
                throw;
            }
        }