예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            libros = new Bussiness.ControlLibros();
            String codigo = Request.QueryString["codigo"];

            libros.Eliminar(codigo);
            Response.Redirect("LibrosLista.aspx");
        }
예제 #2
0
		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());
			}
			
			
		}
예제 #3
0
        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;
            }
        }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.libros = new Bussiness.ControlLibros();
     this.datos  = libros.libros();
 }