Hi there,
I have an XML file, which follows...
Question: How do I populate my Drop Down List using VB.NET? I'd like to code it in the aspx.vb file. I wish to have an output like this...Code:<countries> <country> <name>Italy</name> <value>I</value> </country> <country> <name>Japan</name> <value>J</value> </country> <country> <name>Germany</name> <value>G</value> </country> <country> <name>USA</name> <value>U</value> </country> </countries>
Thanks in advanceCode:<asp:DropDownList ID="drpCountry" runat="server"> <asp:ListItem Value="I">Italy</asp:ListItem> <asp:ListItem Value="J">Japan</asp:ListItem> <asp:ListItem Value="G">Germany</asp:ListItem> <asp:ListItem Value="U">USA</asp:ListItem> </asp:DropDownList>![]()




Reply With Quote