Exemple #1
0
    protected void SubmitButton_Click(object sender, EventArgs e)
    {
        string firstname = FirstNameTextBox.Text;

        string lastname = LastNameTextBox.Text;

        string email = EmailTextBox.Text;

        string password = ConfirmTextBox.Text;

        string apartmentNumber = ApartmentNumberTextBox.Text;

        string street = StreetTextBox.Text;

        string city = CityTextBox.Text;

        string state = StateTextBox.Text;

        string Zipcode = ZipcodeTextBox.Text;

        string homePhone = HomePhoneTextBox.Text;

        string workPhone = WorkPhoneTextBox.Text;



        Community_AssistEntities db = new Community_AssistEntities();

        int result = db.usp_Register(lastname, firstname, email,

                                     password, apartmentNumber, street, city, state,

                                     Zipcode, homePhone, workPhone);
    }
    public bool RegisterUser(Person u)
    {
        bool result = true;
        int  use    = db.usp_Register(u.PersonLastName, u.PersonFirstName, u.PersonEmail, u.PersonPassWord, u.PersonAddresses);

        return(result);
    }
Exemple #3
0
    protected void SubmitButton_Click(object sender, EventArgs e)
    {
        string first     = FirstNameTextBox.Text;
        string last      = LastNameTextBox.Text;
        string email     = EmailTextBox.Text;
        string password  = ConfirmPasswordTextBox.Text;
        string apartment = ApartmentNumberTextBox.Text;
        string street    = StreetNameTextBox.Text;
        string city      = CityTextBox.Text;
        string state     = StateTextBox.Text;
        string zip       = ZipcodeTextBox.Text;
        string home      = HomePhoneTextBox.Text;
        string work      = WorkPhoneTextBox.Text;

        Community_AssistEntities db = new Community_AssistEntities();
        int result = db.usp_Register(first, last, email, password, apartment, street, city, state, zip, home, work);

        if (result != -1)
        {
            Response.Redirect("Default2.aspx");
        }
        else
        {
            ErrorLabel.Text = "Try again";
        }
    }
Exemple #4
0
    protected void SubmitBtn_Click(object sender, EventArgs e)
    {
        string first           = FirstNameTxt.Text;
        string last            = LastNameTxt.Text;
        string email           = EmailTxt.Text;
        string street          = Address1Txt.Text;
        string apartmentNumber = AptTxt.Text;
        string city            = CityTxt.Text;
        string state           = StateTxt.Text;
        string zipcode         = ZipTxt.Text;
        string homePhone       = HomePhoneTxt.Text;
        string workPhone       = WorkPhoneTxt.Text;
        string password        = PasswordTxt.Text;

        Community_AssistEntities db = new Community_AssistEntities();
        int result = db.usp_Register(last, first, email, password, apartmentNumber, street, city, state, zipcode, homePhone, workPhone);

        if (result != -1)
        {
            Response.Redirect("Default.aspx");
        }
        else
        {
            ErrorLbl.Text = "Something went wrong!";
        }
    }
Exemple #5
0
    protected void SubmitButton_Click(object sender, EventArgs e)
    {
        string firstname       = FirstNameTextBox.Text;
        string lastname        = LastNameTextBox.Text;
        string email           = EmailTextBox.Text;
        string streetName      = StreetName.Text;
        string apartmentNumber = ApartmentNumber.Text;
        string city            = City.Text;
        string state           = State.Text;
        string zipCode         = ZipCode.Text;
        string HomePhone       = PhoneNumber.Text;
        string WorkPhone       = WorkNumber.Text;
        // string user = UserTextBox.Text;
        string password = ConfirmTextBox.Text;

        Community_AssistEntities db = new Community_AssistEntities();
        int result = db.usp_Register(lastname, firstname, email, password, apartmentNumber, streetName, city, state, zipCode,
                                     HomePhone, WorkPhone);

        if (result != -1)
        {
            Response.Redirect("Default.aspx");
        }
        else
        {
            ErrorLabel.Text = "Something went terribly wrong";
        }
    }
Exemple #6
0
    protected void SubmitButton_Click(object sender, EventArgs e)
    {
        string first     = FirstNameTextBox.Text;
        string last      = LastNameTextBox.Text;
        string email     = EmailTextBox.Text;
        string password  = ConfirmTextBox.Text;
        string address   = AddressTextBox.Text;
        string aptNumber = ApNumTextBox.Text;
        string city      = CityTextBox.Text;
        string state     = StateTextBox.Text;
        string zipcode   = ZipCodeTextBox.Text;
        string homePhone = HmPhoneTextBox.Text;
        string workPhone = WkPhoneTextBox.Text;

        Community_AssistEntities db = new Community_AssistEntities();
        int result = db.usp_Register(first, last, email, password, address, aptNumber, city, state, zipcode, homePhone, workPhone);

        if (result != -1)
        {
            Response.Redirect("Default.aspx");
        }
        else
        {
            ErrorLabel.Text = "Something went terribly worng";
        }
    }
    protected void SubmitButton_Click(object sender, EventArgs e)
    {
        string last     = LastNameTextBox.Text;
        string first    = FirstNameTextBox.Text;
        string email    = EmailTextBox.Text;
        string password = PasswordTextBox.Text;
        string apt      = HouseNumTextBox.Text;
        string street   = StreetTextBox.Text;
        string city     = CityTextBox.Text;
        string state    = StateTextBox.Text;
        string zipcode  = ZipCodeTextBox.Text;
        string home     = HomePhoneTextBox.Text;
        string work     = WorkPhoneTextBox.Text;

        Community_AssistEntities db = new Community_AssistEntities();
        int result = db.usp_Register(last, first, email, password, apt, street, city, state, zipcode, home, work);

        if (result != -1)
        {
            Response.Redirect("Default.aspx");
        }
        else
        {
            ErrorLabel.Text = "Something went terribly wrong";
        }
    }
Exemple #8
0
    protected void SubmitButton_Click(object sender, EventArgs e)
    {
        Community_AssistEntities cae = new Community_AssistEntities();
        Person p         = new Person();
        string lastName  = LastNameTextBox.Text;
        string firstName = FirstNameTextBox.Text;
        string email     = EmailTextBox.Text;
        string password  = PasswordTextBox.Text;
        string apartment = apartmentTextBox.Text;
        string street    = StreetTextBox.Text;
        string city      = CityTextBox.Text;
        string state     = StateTextBox.Text;
        string zip       = ZipcodeTextBox.Text;
        string home      = HomePhoneTextBox.Text;
        string work      = WorkPhoneTextBox.Text;
        int    result    = cae.usp_Register(lastName, firstName, email, password, apartment, street, city, state, zip, home, work);

        if (result != -1)
        {
            Response.Redirect("Default.aspx");
        }
        else
        {
            ResultLabel.Text = "Error. Inconclusive Information.";
        }
    }
Exemple #9
0
    protected void SubmitRegistration()
    {
        string lastname  = LastNameTextBox.Text;
        string fristname = FirstNameTextBox.Text;
        string email     = EmailTextBox.Text;
        string apratment = ApartmentTextBox.Text;
        string street    = StreetTextBox.Text;
        string city      = CityTextBox.Text;
        string state     = StateTextBox.Text;
        string zip       = ZipcodeTextBox.Text;
        string home      = HomeTextBox.Text;
        string work      = WorkTextBox.Text;
        string password  = PasswordTextBox.Text;

        Community_AssistEntities cae = new Community_AssistEntities();
        int result = cae.usp_Register(lastname, FirstNameTextBox, email, password, apartment, street, city, state, zip, home, work);

        if (result != -1)
        {
            Response.Redirect("Default.aspx");
        }
        else
        {
            ResultLabel.Text = "something went really wrong";
        }
    }
Exemple #10
0
    protected void submitButton_Click(object sender, EventArgs e)
    {
        string Last            = lastTextBox.Text;
        string First           = firstTextBox.Text;
        string Email           = EmailTextBox.Text;
        string Password        = PasswordTextBox.Text;
        string Apartmentnumber = ApartmentTextBox.Text;
        string Street          = StreetTextBox.Text;
        string city            = cityTextBox.Text;
        string state           = StateTextBox.Text;
        string Zipcode         = ZipcodeBox.Text;
        string CellPhone       = CellphoneBox.Text;
        string WorkPhone       = WorkphoneBox.Text;


        Community_AssistEntities db = new Community_AssistEntities();
        int result = db.usp_Register(Last, First, Email, Password, Apartmentnumber, Street, city, state, Zipcode, CellPhone, WorkPhone);

        if (result != -1)

        {
            Response.Redirect("Default.aspx");
        }


        else

        {
            ErrorLable.Text = ("Try to Register again");
        }
    }
        public ActionResult Create([Bind(Include = "LastName, FirstName, Email, Password, Apartment, Street, City, State, Zipcode, homePhone, WorkPhone")]
                                   Personlite pl)
        {
            int result = db.usp_Register(pl.LastName, pl.FirstName, pl.Email, pl.Password, pl.Apartment, pl.Street, pl.City, pl.State, pl.Zipcode, pl.HomePhone, pl.WorkPhone);

            return(View());
        }
    protected void SubmitButton_Click(object sender, EventArgs e)
    {
        string lastname  = LastNameTextBox.Text;
        string firstname = FirstNameTextBox.Text;
        string email     = EmailTextBox.Text;
        string apartment = ApartmentNumberTextBox.Text;
        string street    = StreetTextBox.Text;
        string city      = CityTextBox.Text;
        string state     = StateTextBox.Text;
        string zip       = ZipcodeTextBox.Text;
        string home      = HomePhoneTextBox.Text;
        string work      = WorkPhoneTextBox.Text;
        string password  = PasswordTextBox.Text;

        Community_AssistEntities cae = new Community_AssistEntities();
        int result = cae.usp_Register(lastname, firstname, email, password, apartment, street, city, state, zip, home, work);


        if (result != -1)
        {
            Response.Redirect("Default.aspx");
        }
        else
        {
            ResultLabel.Text = "Something Went Horribly Wrong.... With Your Entries";
        }
    }
Exemple #13
0
    protected void SubmitButton_Click(object sender, EventArgs e)
    {
        string email           = EmailTextBox.Text;
        string firstname       = FirstNameTextBox.Text;
        string lastname        = LastNameTextBox.Text;
        string password        = ConfirmPasswordTextBox.Text;
        string apartmentNumber = ApartmentNumberTextBox.Text;
        string street          = StreetTextBox.Text;
        string city            = CityTextBox.Text;
        string state           = StateTextBox.Text;
        string zipcode         = ZipcodeTextBox.Text;
        string homePhone       = HomePhoneTextBox.Text;
        string workPhone       = WorkPhoneTextBox.Text;



        Community_AssistEntities db = new Community_AssistEntities();
        int result = db.usp_Register(lastname, firstname, email, password, apartmentNumber,
                                     street, city, state, zipcode, homePhone, workPhone);

        if (result != -1)
        {
            Response.Redirect("Donation1.aspx");
        }
        else
        {
            ErrorLabel.Text = "Review your information, something is wrong.";
        }
    }
Exemple #14
0
    protected void RegisterButton_Click(object sender, EventArgs e)
    {
        string first                = FirstNameTextBox.Text;
        string last                 = LastNameTextBox.Text;
        string email                = EmailTextBox.Text;
        string pass                 = ConfirmPasswordTextBox.Text;
        string street               = StreetTextBox.Text;
        string apt                  = ApartmentNumberTextBox.Text;
        string city                 = CityTextBox.Text;
        string state                = StateTextBox.Text;
        string zip                  = ZipCodeTextBox.Text;
        string homePhone            = HomePhoneTextBox.Text;
        string workPhone            = WorkPhoneTextBox.Text;
        Community_AssistEntities db = new Community_AssistEntities();

        int success = db.usp_Register(last, first, email, pass, apt, street, city, state, zip, homePhone, workPhone);

        if (success != -1)
        {
            Response.Redirect("Default.aspx");
        }
        else
        {
            ResultLabel.Text = "Something went terribly wrong";
        }
    }
    public bool RegisterPerson(string lastname, string firstname, string email, string password, string aptnumber, string street, string city, string state, string zipcode, string homephone, string workphone)
    {
        bool result = true;

        db.usp_Register(lastname, firstname, email, password, aptnumber, street, city, state, zipcode, homephone, workphone);

        return(result);
    }
    public bool RegisterUser(personInfo E)
    {
        bool result = true;
        int  person = db.usp_Register(E.lastname, E.firstname, E.email, E.password, E.apartmentNumber, E.street, E.city, E.state, E.zipcode, E.homePhone, E.workPhone);


        return(result);
    }
Exemple #17
0
    public bool RegisterPerson(PersonInfo r)
    {
        bool result = true;
        int  rev    = db.usp_Register(r.PersonLastName, r.PersonFirstName, r.PersonEmail, r.PersonPassWord, r.PersonApartmentNumber,
                                      r.PersonStreet, r.PersonCity, r.PersonState, r.PersonZipcode, r.PersonHomePhone, r.PersonWorkPhone);

        return(result);
    }
    public bool RegisterPerson(Person p)
    {
        bool result = true;
        int  pers   = db.usp_Register(p.PersonLastName, p.PersonFirstName, p.PersonEmail,
                                      p.PersonPassWord);

        return(result);
    }
Exemple #19
0
    public bool RegisterUser(string lastname, string firstname, string email, string password, string Apartment, string Street, string City, string State, string Zipcode, string HomePhone, string WorkPhone)
    {
        bool result = true;
        int  rev    = db.usp_Register(lastname, firstname, email, password, Apartment,
                                      Street, City, State, Zipcode, HomePhone, WorkPhone);

        return(result);
    }
Exemple #20
0
    public bool PersonRegister(PersonInfo p)
    //int IA5Service.PersonRegister(PersonInfo p)
    {
        bool result = true;
        int  rev    = db.usp_Register(p.PersonLastName, p.PersonFirstName, p.PersonEmail, p.PersonPassword, p.PersonApartmentNumber, p.PersonStreet, p.PersonCity, p.PersonState, p.PersonZipcode, p.PersonHomePhone, p.PersonWorkPhone);

        return(result);
    }
Exemple #21
0
    //to register people
    public bool RegisterPerson(PersonInfo p)
    {
        bool result = true;
        int  rp     = db.usp_Register(p.LastName, p.FirstName, p.Email,
                                      p.Password, p.ApartmentNumber, p.Street,
                                      p.City, p.State, p.Zipcode, p.HomePhone, p.WorkPhone);

        return(result);
    }
Exemple #22
0
    public bool RegisterPerson(PersonLite p)
    {
        bool result = true;
        int  per    = db.usp_Register(p.lastname,
                                      p.firstname, p.email, p.password,
                                      p.ApartmentNumber, p.street, p.city, p.state, p.zipcode, p.homePhone, p.workPhone);

        return(result);
    }
Exemple #23
0
    public bool RegisterPerson(PersonInfo pi)
    {
        bool result = true;
        int  reg    = db.usp_Register(pi.lastname,
                                      pi.firstname, pi.email, pi.password, pi.ApartmentNumber,
                                      pi.Street, pi.City, pi.State,
                                      pi.Zipcode, pi.HomePhone, pi.WorkPhone);

        return(result);
    }
    public bool Register(PersonInfo i)
    {
        //register using the stored procedure
        bool result = true;
        int  rev    = db.usp_Register(i.lastName,
                                      i.firstName, i.email, i.password.ToString(),
                                      i.apartment, i.street, i.city, i.state, i.zip,
                                      i.workPhone, i.homePhone);

        return(result);
    }
Exemple #25
0
    public bool RegisterPerson(PersonLite p)
    {
        bool result  = true;
        int  success = cae.usp_Register(p.LastName, p.FirstName, p.Email, p.Password, p.Apartment, p.Street, p.City, p.State, p.Zipcode, p.HomePhone, p.WorkPhone);

        if (success == -1)
        {
            result = false;
        }
        return(result);
    }
    public void RegisterPerson(string lastName, string firstName, string email, string password,
                               string apartmentNumber, string street, string city, string state, string zipCode,
                               string homePhone, string workPhone)
    {
        int success = GetPersonKey(email);

        if (success == 0)
        {
            Community_AssistEntities db = new Community_AssistEntities();
            db.usp_Register(lastName, firstName, email, password, apartmentNumber, street, city, state, zipCode, homePhone, workPhone);
        }
    }
Exemple #27
0
    public int RegisterUser(personInfo p)
    {
        var perinfo = from b in db.People

                      select b;
        List <Person> person = new List <Person>();
        // List<personInfo> per = new List<personInfo>();
        //bool result = true;
        int result = db.usp_Register(p.lastName, p.fisrtName, p.email, p.password, p.apartmentNumber, p.street, p.city, p.state, p.zipCode, p.homePhone, p.workPhone);


        return(result);
    }