protected void Button1_Click(object sender, EventArgs e) { proveedor = new ProveedorAD(); string nombre = txtNombre.Text; int telefono = Convert.ToInt32(txtTelefono.Text); string correo = txtCorreo.Text; if (proveedor.InsertProveedor(nombre, telefono, correo)) { //Response.Write("<script>window.alert('Institucion Creada')</script>"); Response.Redirect(HttpContext.Current.Request.Url.AbsoluteUri); } else { Response.Write("<script>window.alert('Ingreso Fallido')</script>"); } }