protected void Button1_Click(object sender, EventArgs e) { operacion op = new operacion(); if (op.ingresar(Tusu.Text, Tcontra.Text) != null) { Response.Write("<script>window.alert('" + op.ingresar(Tusu.Text, Tcontra.Text) + "')</script>"); Response.Write("<script>"); Response.Write("window.open('inicio.aspx' ,'_blank')"); Response.Write("</script>"); } else { } }
protected void Button1_Click(object sender, EventArgs e) { operacion op = new operacion(); if (op.ingresar(Tusu.Text, Tcontra.Text) != "") { usuario = Tusu.Text; Response.Redirect("inicio.aspx"); } else { Response.Write("<script>window.alert('Usuario y/o Cintraseña Erronea')</script>"); } }