protected void Page_Load(object sender, EventArgs e) { string id = Request.QueryString["bid"]; int bid = Convert.ToInt32(id); LibraryDAL dal = new LibraryDAL(); BookModel model = dal.FindBook(id); txt_Bookid.Text = model.BookID.ToString(); txt_Bookname.Text = model.BookName; txt_BookAuthor.Text = model.BookAuthor; txt_BookTitle.Text = model.BookTitle; txt_BookPrice.Text = model.BookPrice.ToString(); img.ImageUrl = model.BookImage; txt_BookAddDate.Text = model.BookAddDate.ToString(); txt_NoOfPages.Text = model.NoOfPages.ToString(); }