zoukankan      html  css  js  c++  java
  • 多个数据读取的两种简写方法

    string[] gqds_key = new string[23];
                string[] gqds_table = new string[23];
                string[] gqds_where = new string[23];
                string[] gqds_order = new string[23];
                DataSet gqds = new DataSet();

                gqds_key[0] = "top 9 oppid,title,opptype";
                gqds_table[0] = "Opportunity";
                gqds_where[0] = "opptype=3 and oppstate=1";
                gqds_order[0] = "oppid desc";

                gqds = DB.ReturnDataSet(gqds_key, gqds_table, gqds_where, gqds_order);
                Bind(rptgy, gqds, 0);

                protected void Bind(Repeater rpt, DataSet ds, int i)
                {
                    rpt.DataSource = ds.Tables[i];
             rpt.DataBind();
                }
               public static DataSet ReturnDataSet(string[] colums, string[] tabname, string[] where, string[] order);
               string[] listsql2 = new string[7];
        listsql2[0] = "";
               listsql2[1] = "";
               dataSet ds = DB.ReturnDataSet(listsql2 );
        Bind(rptgy, ds , 0);

  • 相关阅读:
    git clone 解决Permission Denied (publickey)问题
    json-server 的基本使用
    存储过程的基本使用(1)
    Linux中的yum是什么?如何配置?如何使用?
    搭建博客园皮肤
    PSCP和SCP区别和用法
    Linux 磁盘分区和挂载
    win10产生文件的哈希值
    linux下刻录iso到U盘
    jquery鼠标移入移出
  • 原文地址:https://www.cnblogs.com/candyzhmm/p/4270582.html
Copyright © 2011-2022 走看看