protected void Page_Load(object sender, EventArgs e) { try { shopController sc = new shopController(); string title = (string)Session["booktitle"]; //string title = "The Hate U Give";//For testing purpose Book b = sc.loadBook(title); Category c = sc.loadCategory(b);//Mr. Derek, I feel it is not necessary to have a seperate table for category...... txtTitle.Text = b.Title; txtISBN.Text = b.ISBN; txtAuthor.Text = b.Author; txtCat.Text = c.Name; txtQuantity.Text = b.Stock.ToString(); txtPrice.Text = b.Price.ToString();//Original Price Image1.ImageUrl = "~/images/" + b.ISBN + ".jpg"; } catch (Exception ex) { string errormsg = string.Format("<script>Error:{0}</script>", ex.Message); Response.Write(errormsg); } }