Пример #1
0
    private void EditData(int AlbumCode)
    {
        try
        {
            tbl_AlbumMasterProp Objtbl_AlbumMasterProp = new tbl_AlbumMasterProp();
            Objtbl_AlbumMasterProp.AlbumCode = AlbumCode;

            int PageCount = 0;
            tbl_AlbumMasterBAL Objtbl_AlbumMasterBAL = new tbl_AlbumMasterBAL();
            DataSet            dsData = Objtbl_AlbumMasterBAL.Select_Data(Objtbl_AlbumMasterProp, ref PageCount);

            txtAlbumName.Text     = Convert.ToString(dsData.Tables[0].Rows[0]["AlbumName"]);
            ViewState["EditCode"] = AlbumCode;
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
Пример #2
0
    private void FillData()
    {
        try
        {
            int PageCount = 0;
            tbl_AlbumMasterProp Objtbl_AlbumMasterProp = new tbl_AlbumMasterProp();
            Objtbl_AlbumMasterProp.AlbumCode   = 0;
            Objtbl_AlbumMasterProp.PageNo      = Convert.ToInt32(txtCurPage.Text);
            Objtbl_AlbumMasterProp.RecordCount = Convert.ToInt32(20);

            tbl_AlbumMasterBAL Objtbl_AlbumMasterBAL = new tbl_AlbumMasterBAL();
            DataSet            dsData = Objtbl_AlbumMasterBAL.Select_Data(Objtbl_AlbumMasterProp, ref PageCount);

            lblTotalPage.Text = Convert.ToString(PageCount);

            grdData.DataSource = dsData.Tables[0];
            grdData.DataBind();
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }