protected void Page_Load(object sender, EventArgs e) { libros = new Bussiness.ControlLibros(); String codigo = Request.QueryString["codigo"]; libros.Eliminar(codigo); Response.Redirect("LibrosLista.aspx"); }
protected void Page_Load(object sender, EventArgs e) { this.libros = new Bussiness.ControlLibros(); if (!IsPostBack) { this.addArea.DataSource = libros.MostrarAreas(); this.addArea.DataBind(); } else { a = libros.CodigoArea(this.addArea.SelectedItem.ToString()); } }
protected void Page_Load(object sender, EventArgs e) { libros = new Bussiness.ControlLibros(); if (!IsPostBack) { this.actArea.DataSource = libros.MostrarAreas(); this.actArea.DataBind(); } cod = Request.QueryString["codigo"]; this.datos = libros.libro(cod); foreach (Entities.Libro lib in datos) { this.Codigo = lib.Codigo; this.Nombre = lib.Nombre; this.Paginas = lib.NumeroPaginas; this.Autor = lib.Autor; this.Editorial = lib.Editorial; } }
protected void Page_Load(object sender, EventArgs e) { this.libros = new Bussiness.ControlLibros(); this.datos = libros.libros(); }