I want to display company name and logo in dropdownlist.I have fetch all the company name in dropdownlist but i am not able to add logo with name.
I have xml file where company name and images are specified. Structure of xml file:
<ente>
<nazione>ALBANIA</nazione>
<name>Tirana</name>
<img>tvsh-albania.png</img>
<descri>TVSH - Rruga Ismail Quemali 11, Tirana</descri>
<latitudine>41.321102</latitudine>
<longitudine>19.823112</longitudine>
<zoom>-4</zoom>
</ente>
I have all images in image folder also.
I have use this code:
Protected Sub BindDataToGridviewDropdownlist()
Dim xmlreader As New XmlTextReader(Server.MapPath("XMLFILE.xml"))
Dim ds As New DataSet()
ds.ReadXml(xmlreader)
xmlreader.Close()
If ds.Tables.Count <> 0 Then
ddlDetails.DataSource = ds
ddlDetails.DataTextField = "nome"
ddlDetails.DataValueField = "nome"
ddlDetails.DataBind()
End If
End Sub
What i need to do so i can also display image with company name.