protected void B_Crear_Click(object sender, EventArgs e) { UUsuario datos = new UUsuario(); LUser user = new LUser(); ClientScriptManager cm = this.ClientScript; datos.Nombre = TB_Nombre.Text.ToString(); datos.Apellido = TB_Apellido.Text.ToString(); datos.Email = TB_Email.Text.ToString(); datos.Telefono = TB_Celular.Text.ToString(); datos.Cedula = TB_Cedula.Text.ToString(); datos.Id_Rol = int.Parse(DDL_Rol.SelectedValue.ToString()); datos.User_Name1 = TB_Usuario.Text.ToString(); datos.Clave = TB_Contrasena.Text.ToString(); datos.Rclave = TB_CConrasena.Text.ToString(); datos.Session = "a"; datos = user.RegistrarEmpleado(datos); this.RegisterStartupScript("mensaje", datos.Mensaje); }