Bind Value From XMLWebService to Dropdownlist in ASP.Net

Vicious88

New Member
How to bind data from an XMLWebService to a DropDownList?I have this code but it doesn't work:\[code\]Dim xMaster As New MasterService.MasterserviceDT = xMaster.GetDataProgramDT.Load(DT)DDL.DataSource = DTDDL.DataTextField = DT.Columns("cdProgram").ColumnName.ToString()DDL.DataValueField = DT.Columns("nmProgram").ColumnName.ToString()DDL.DataBind()\[/code\]I tried to bind it to the GridView and the values are shown. But, when I tried to bind it to the dropdownlist, it returns nothing. Thank you very much.
 
Back
Top