protected void gettable()
    {
        object[] restrictions = new object[] { null, null, null, "table" }; //
        oledbconnection gettableconn = new oledbconnection(cgetconnstr.connstring);
        gettableconn.open();
        datatable temptable = gettableconn.getoledbschematable(oledbschemaguid.tables,restrictions);
        arraylist tablename = new arraylist();
        int count = temptable.rows.count;
        for (int i = 0; i < count; i++)
        {
            tablename.add(temptable.rows[i]["table_name"].tostring());
            textbox temptb = new textbox();
            temptb.id = "tb" + i.tostring();
            temptb.text = (string)tablename[i];
            this.controls.add(temptb);
        }
        gettableconn.close();
    }
    public override void verifyrenderinginserverform(control control)
    {
    } 
新聞熱點(diǎn)
疑難解答
圖片精選