protected void btnSubmit_Click(object sender, EventArgs e) { RegisterUser reg = new RegisterUser(); reg.RegisterUsers(txtUsername.Text, txtPassword.Text, txtPasswordC.Text); lblStatus.Text = reg.status; }