How to bind XML DataDroplist

xiaoxiao2021-03-06  106

As you this XML file is XMLFile1.xml

Dim ds1 As New DataSetds1.ReadXml (Server.MapPath ( "XMLFile1.xml")) DropDownList1.DataSource = ds1.Tables ( "productname") DropDownList1.DataTextField = "productname_Text" DropDownList1.DataValueField = "product_ID" DropDownList1.DataBind ()

转载请注明原文地址:https://www.9cbs.com/read-125080.html

New Post(0)