日期:2014-05-19  浏览次数:20417 次

进来看一看,分数轻松拿
DBOp   dbop   =   new   DBOp(Request.PhysicalApplicationPath);
                int   a   =   dbop.OpenDataBase();
                if   (a   ==   1)
                {
                        OleDbDataAdapter   da   =   new   OleDbDataAdapter( "select   *   from   Main_pricute ",   dbop.DataBaseConn);
                        DataSet   ds   =   new   DataSet();
                        da.Fill(ds);
                        tablestr   =   " <table   width=75%   border=0   cellspacing=1   cellpadding=1> <tr> ";
                        for(int   i   =1;i <=ds.Tables[0].Rows.Count;i++)
                        {
                                if   (ds.Tables[0].Rows[i   -   1]   !=   null)
                                {
                                        //if   (i   <=   5)
                                        //{
                                        tablestr   +=   " <td> <img   src= '../../ "   +   ds.Tables[0].Rows[i   -   1].ItemArray[7]   +   " '   width=100   height=100   border=0/> <br> "   +   ds.Tables[0].Rows[i   -   1].ItemArray[1]   +   " </td> ";
                                       
                                        //}
                                       
                                        //if   (i   > 5   &&   i   <   ds.Tables[0].Rows.Count   +   1)
                                        //{
                                        //         tablestr   +=   " <td> <a   href=Main.aspx?id= "   +   Session[ "numbe