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());
			}
			
			
		}
Example #2
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;
            }
        }