<delect id="sj01t"></delect>
  1. <em id="sj01t"><label id="sj01t"></label></em>
  2. <div id="sj01t"></div>
    1. <em id="sj01t"></em>

            <div id="sj01t"></div>

            ASP.NET DropDownList控件的使用方法

            時間:2024-11-06 11:02:57 ASP 我要投稿
            • 相關推薦

            關于ASP.NET DropDownList控件的使用方法

              1. 數據綁定

              復制代碼 代碼如下:

              this.DropDownList1.DataSource = CategoryManager.getCategories();

              DropDownList1.DataValueField = "id";//用來設置下拉列表選中的 Value 值

              DropDownList1.DataTextField = "name";//為下拉列表選項顯示的值

              DropDownList1.DataBind();

              2.讀取數據

              復制代碼 代碼如下:

              int categoryId = int.Parse(this.DropDownList1.SelectedItem.Value);//獲取下拉列表中選中的值

            【ASP.NET DropDownList控件的使用方法】相關文章:

            asp.net的學習過程講解07-11

            ASP.NET MVC異常處理模塊簡單教程-ASP.NET教程實例推薦07-19

            ASP.NET Page函數調用解析10-01

            早教機的使用方法07-27

            早教機使用方法02-27

            武術器械使用方法09-03

            早教機藍牙的使用方法09-16

            西餐餐巾的使用方法09-17

            護發膜使用方法10-26

            日語常用敬語使用方法01-21

            <delect id="sj01t"></delect>
            1. <em id="sj01t"><label id="sj01t"></label></em>
            2. <div id="sj01t"></div>
              1. <em id="sj01t"></em>

                      <div id="sj01t"></div>
                      黄色视频在线观看