zoukankan      html  css  js  c++  java
  • DropDownList绑定数据库

    this.DropDownList_设备列表.DataSource = dt_eq;//设置数据源
    this.DropDownList_设备列表.DataTextField = "equipment_name";//设置所要读取的数据表里的列名
    this.DropDownList_设备列表.DataValueField = "equipment_id";
    this.DropDownList_设备列表.DataBind();//数据绑定
    this.DropDownList_设备列表.SelectedIndex = 0;

  • 相关阅读:
    第四章的知识点:
    第一章的知识点:
    13
    12
    11
    10
    9
    zy
    金嘉琪 作业
    1022作业
  • 原文地址:https://www.cnblogs.com/asdyzh/p/9747481.html
Copyright © 2011-2022 走看看