コード例 #1
0
ファイル: HighlightsList.aspx.cs プロジェクト: zxl881203/src
    protected void Data_Bind()
    {
        DataTable pageData = AffairAction.GetPageData(this.PrjCode, this.Session["DATUMCLASS"].ToString(), this.DDLLookup.SelectedValue, this.TxtLookup.Text);

        this.ViewState[HighlightsList.resourceTable] = pageData;
        this.GridView1.DataSource = pageData;
        this.GridView1.DataBind();
    }
コード例 #2
0
ファイル: fileupload.aspx.cs プロジェクト: zxl881203/src
    protected void Data_Bind()
    {
        this.Session["DATUMCLASS"].ToString();
        DataTable pageData = AffairAction.GetPageData(this.PrjCode, this.Session["DATUMCLASS"].ToString(), this.DDLLookup.SelectedValue, this.TxtLookup.Text);

        DataRow[] array     = pageData.Select(this.wheresql);
        DataTable dataTable = new DataTable();

        dataTable = pageData.Clone();
        DataRow[] array2 = array;
        for (int i = 0; i < array2.Length; i++)
        {
            DataRow row = array2[i];
            dataTable.ImportRow(row);
        }
        this.GridView1.DataSource = dataTable;
        this.GridView1.DataBind();
    }