protected void btnRegistrar_Click(object sender, EventArgs e) { Registrar cat = new Registrar(); cat.nombre = nombre.Value; cat.contraseƱa = contraseƱa.Value; cat.correo = correo.Value; cat.pais = pais.Value; cat.identificacion = identificacion.Value; Registrar.Insertar(cat); Response.Redirect("registrarse.aspx"); Response.Write("<script>window.alert('Te acabas de registrar');</script>"); }