protected void register_Click(object sender, EventArgs e) { Login1 register = new Login1(); User users = createUser(); lblresult.Text = register.AddUser(users); lblterm.Visible = false; fname.Value = string.Empty; comname.Value = string.Empty; email.Value = string.Empty; countryselect.Value = string.Empty; password.Value = string.Empty; }