protected void edit_Click(object sender, EventArgs e) { User object1 = new User(); /* * Open User which is the table to access the variables. * Value from textbox taken to be stored in the variables(column) of object * * Open Login1 class to access a function inside to pass object1 into the function to be passed into the variable; NewUser */ object1.Id = userid; object1.fullName = fname.Value; object1.companyName = cname.Value; object1.email = email1.Value; object1.country = country.SelectedValue; Login1 object2 = new Login1(); String successmessage = object2.UpdateUser(object1); lblresult4.Text = successmessage; }