コード例 #1
0
    //绑定数据
    private void BindData(string bname)
    {
        U_ZCBAOBU zc1 = new U_ZCBAOBU();
        DataSet   ds1 = zc1.GetMyShenPiZcB(User.Identity.Name, bname, 1);

        this.GridView1.DataSource = ds1;
        this.GridView1.DataBind();
        zc1.Close();
        ds1.Dispose();
    }