private void GetBook()
        {
            try
            {
                objEWA.OrgId = Convert.ToInt32(Session["OrgId"]);

                ds = objBL.GetBook_BL(objEWA);

                if (ds.Tables[0].Rows.Count > 0)
                {
                    GrdBook.DataSource = ds;
                    GrdBook.DataBind();

                    btnPrint.Visible = true;
                }
                else
                {
                    GrdBook.DataSource = ds;
                    GrdBook.DataBind();

                    btnPrint.Visible = false;
                }
            }
            catch (Exception ex)
            {
            }
        }
Beispiel #2
0
        private void BindGrid()
        {
            BL_AddBook  objBL  = new BL_AddBook();
            EWA_AddBook objEWA = new EWA_AddBook();

            objEWA.OrgId = Convert.ToInt32(Session["OrgId"]);

            DataSet ds = objBL.GetBook_BL(objEWA);

            if (ds.Tables[0].Rows.Count > 0)
            {
                GridView1.DataSource = ds;
                GridView1.DataBind();
            }
            else
            {
                Response.Write("<script>alert('Record Not Found...!')</script>");
            }
        }