//update user event
    protected void btnUpdateUser_Click(object sender, EventArgs e)
    {
        string results = myBusinessLayer.UpdateUser(txtUserName.Text, txtCity.Text, txtState.Text, txtFavoriteLanguage.Text, txtLeastFavoriteLanguage.Text, txtLastProgramDate.Text, Convert.ToInt32(customerID.Text));

        updateForm(results);

    }
Exemple #2
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        string results = myBusinessLayer.UpdateUser(Session["username"].ToString(), City.Text, State.Text, FavLang.Text, LeastFavLang.Text, LastProgDate.SelectedDate);

        //set error to false
        lblUserFeedback.Text = results;
    }
Exemple #3
0
    // UpdateUser_click method
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        string results = myBusinessLayer.UpdateUser(txtFirstName.Text,
                                                    txtLastName.Text, txtEmail.Text, txtPassword.Text, txtStreet.Text,
                                                    txtCity.Text, txtState.Text, txtFav.Text, txtLeast.Text, txtProgramLanguage.Text, txtProgramName.Text, txtDate.Text);


        UpdateForm(results);
    }
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        Master.UserFeedBack.Text = "Your Account has been Updated";
        Session["NewUser"]       = false;

        string           tempPath        = Server.MapPath("~/App_Data/");
        clsBusinessLayer myBusinessLayer = new clsBusinessLayer(tempPath);


        try
        {
            myBusinessLayer.UpdateUser(lblUsername.Text, lblCity.Text, lblState.Text, lblFavProgram.Text, lblLeastProgram.Text, lblDate.Text, Convert.ToInt32(lblUserID.Text));
            Button1.Visible = false;
        }


        catch (Exception error)
        {
            string message = "Error updating user information, please check input values. ";
            Session["NewUser"]       = true;
            Master.UserFeedBack.Text = message + error.Message;
        }
    }