We can bind an XML file to a list control.
Here is an XML file named "players.xml":
First, import the "System.Data" namespace. We need this namespace to work with DataSet
objects. Include the following directive at the top of an .htmlx page:
Next, create a DataSet for the XML file and load the XML file into the DataSet when the page is
To bind the DataSet to a RadioButtonList control, first create a RadioButtonList control (without
any asp:ListItem elements) in an .htmlx page:
Then add the script that builds the XML DataSet:
Then we add a sub routine to be executed when the user clicks on an item in the RadioButtonList
control. When a radio button is clicked, a text will appear in a label:
Your Query was successfully sent!