コード例 #1
0
    protected void gvCancelPolicy_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        try
        {
            objBAL = new ClsBAL();
            ObjDataset = (DataSet)objBAL.GetCancelPercentage();
            if (ObjDataset != null)
            {
                if (ObjDataset.Tables.Count > 0)
                {
                    gvCancelPolicy.PageIndex = e.NewPageIndex;
                    gvCancelPolicy.DataSource = ObjDataset.Tables[0];
                    gvCancelPolicy.DataBind();

                }
            }
        }
        catch (Exception ex)
        {

            throw;
        }
    }
コード例 #2
0
    protected void GetCancelPercentages()
    {
        try
        {
            objBAL = new ClsBAL();
            ObjDataset = (DataSet)objBAL.GetCancelPercentage();
            if (ObjDataset != null)
            {
                if (ObjDataset.Tables.Count > 0)
                {
                    gvCancelPolicy.DataSource = ObjDataset.Tables[0];
                    gvCancelPolicy.DataBind();

                }
            }
        }
        catch (Exception ex)
        {

            throw ex;
        }
    }