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();

  • 相关阅读:
    Linux基础优化(二)
    权限
    分页
    序列化
    forms
    redis
    Django缓存机制
    跨域问题
    Django的ORM
    模板层
  • 原文地址:https://www.cnblogs.com/puke/p/1276524.html
Copyright © 2011-2022 走看看