public void BindData()
    {
        #region region file
        string        physicalpath = ContentManager.GetPhysicalPath(Session["HomePath"] + "StoreData/StaticeContent");
        DirectoryInfo dir          = new DirectoryInfo(physicalpath);
        FileInfo[]    jpgfiles     = dir.GetFiles();
        DataSet       ds           = new DataSet();
        DataTable     dt           = ds.Tables.Add("ThumbImages");
        dt.Columns.Add("ImageName", typeof(string));
        dt.Columns.Add("FileSize", typeof(decimal));
        dt.Columns.Add("FileType", typeof(string));
        dt.Columns.Add("LastModified", typeof(string));
        dt.Columns.Add("fullpath", typeof(string));

        foreach (FileInfo f in jpgfiles)
        {
            string fullpath = Session["HomePath"] + "StoreData" + "//" + f.Name;
            string ext      = f.Extension;
            string filetype = ext.Replace(".", "") + "";
            dt.Rows.Add(new object[] { f.Name, Convert.ToDecimal(f.Length) / 1000, filetype, f.LastWriteTime, fullpath });
        }
        if (ds.Tables[0].Rows.Count > 0)
        {
            GrdFileManager.Visible = true;

            GrdFileManager.DataSource = ds.Tables[0];
            GrdFileManager.DataBind();
        }
        else
        {
            GrdFileManager.Visible = false;
        }
        #endregion
    }
    public void BindData()
    {
        Global  ObjUser = new Global();
        DataSet ds      = new DataSet();

        ds = ObjUser.GetAllPages();
        if (ds.Tables[0].Rows.Count > 0)
        {
            GrdFileManager.DataSource = ds.Tables[0];
            GrdFileManager.DataBind();
            Utility.Setserial(GrdFileManager, "srno");
        }
        else
        {
        }
    }