protected void Page_Load(object sender, EventArgs e)
        {
            string bid = Request.Cookies["bkid"].Value.ToString();
            int    id  = Int16.Parse(bid);

            if (b.getbookdetails(id) == null)
            {
                Response.Write("Error Loading Images");
            }
            else
            {
                datlis1.DataSource = b.getbookdetails(id);
                datlis1.DataBind();
            }
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["User"] == null)
     {
         Response.Redirect("../Login.aspx");
     }
     if (!IsPostBack)
     {
         string bid = Request.Cookies["bkid"].Value.ToString();
         int    id  = Int16.Parse(bid);
         if (b.getbookdetails(id) == null)
         {
             Response.Write("Error Loading Images");
         }
         else
         {
             datlis1.DataSource = b.getbookdetails(id);
             datlis1.DataBind();
         }
     }
 }