protected void Page_Load(object sender, EventArgs e) { if (Session["Nombre"] != null) { } else { Response.Redirect("FrmLoginEn.aspx"); } if (Page.PreviousPage != null) { if (!Label2.Visible) { string id = PreviousPage.getID(); Label2.Text = id; Label1.Visible = true; Label2.Visible = true; Proveedor p = dao.Buscar(Convert.ToInt32(id)); txtNombre.Text = p.Nombre_proveedor; txtTelefono.Text = p.Telefono_proveedor; txtEmail.Text = p.Email_proveedor; txtDireccion.Text = p.Direccion_proveedor; txtCiudad.Text = p.Ciudad_proveedor; Button1.Text = "Actualizar"; } } }