private void ShowInfo(int Id)
        {
            BLL.BooksManager bll   = new OLBookstore.BLL.BooksManager();
            Model.Books      model = bll.GetModel(Id);
            this.lblId.Text            = model.Id.ToString();
            this.txtTitle.Text         = model.Title;
            this.txtAuthor.Text        = model.Author;
            ddlCategory.SelectedValue  = model.CategoryId.ToString();
            ddlPublisher.SelectedValue = model.PublisherId.ToString();
            this.txtPublishDate.Text   = model.PublishDate.ToString();
            this.lblISBN.Text          = model.ISBN;
            this.txtUnitPrice.Text     = model.UnitPrice.ToString();
            FCKeditor1.Value           = model.ContentDescription;
            this.txtTOC.Text           = model.TOC;
            this.txtClicks.Text        = model.Clicks.ToString();

            imgBook.ImageUrl = @"~/userfiles/" + lblISBN.Text.Trim() + ".jpg";
        }
Beispiel #2
0
        private void ShowInfo(int Id)
        {
            BLL.BooksManager bll   = new OLBookstore.BLL.BooksManager();
            Model.Books      model = bll.GetModel(Id);
            this.lblId.Text     = model.Id.ToString();
            this.txtTitle.Text  = model.Title;
            this.txtAuthor.Text = model.Author;

            ddlCategory.SelectedValue       = model.CategoryId.ToString();
            ddlPublisher.SelectedValue      = model.PublisherId.ToString();
            this.txtPublishDate.Text        = model.PublishDate.ToString();
            this.lblISBN.Text               = model.ISBN;
            this.txtUnitPrice.Text          = model.UnitPrice.ToString();
            this.txtContentDescription.Text = model.ContentDescription;
            this.txtTOC.Text = model.TOC;

            this.txtClicks.Text = model.Clicks.ToString();
        }