zoukankan      html  css  js  c++  java
  • DropdownList绑定

    1.Hashtable Ht = new Hashtable();
                Ht.Add("bcgsl", "不成功数量");
                Ht.Add("zsl", "交易总数量");
                Ht.Add("bcgl", "不成功率");
                this.DropDownList4.DataSource = Ht;
                this.DropDownList4.DataValueField = "key";
                this.DropDownList4.DataTextField = "value";
                this.DropDownList4.DataBind();
    2.
     this.DropDownList2.Items.Add(i.ToString("D2"));

    3.

    using System.Collections;
     ArrayList ar = new ArrayList();
                DataTable dt = sDS.Tables[0];
                foreach (DataRow dr in dt.Rows)
                {

                    ar.Add(dr[0].ToString());
                    InsertSZKSKH(dr[0].ToString(), (int)dr[1], time);

                }


                this.DropDownList3.DataSource = ar;
                this.DropDownList3.DataBind();

  • 相关阅读:
    测试产品
    三年回顾
    测试服务输出业务价值
    慎用重载_2
    慎用重载_1
    ByteBuffer和String的互相转换
    线程较为深的度剖析1
    线程同步的故事描述
    Java线程同步
    TCP关闭过程
  • 原文地址:https://www.cnblogs.com/puke/p/1276524.html
Copyright © 2011-2022 走看看