We can integrate an XML file into the configuration control.
Example
For example, 1-x ml r adiobuttonList
An XML file
This is an XML file named "countries. xml ":
<? Xml version = "1.0" encoding = "ISO-8859-1"?>
<Countries>
<Country>
<Text> Norway </text>
<Value> N </value>
</Country>
<Country>
<Text> Sweden </text>
<Value> S </value>
</Country>
<Country>
<Text> France </text>
<Value> F </value>
</Country>
<Country>
<Text> Italy </text>
<Value> I </value>
</Country>
</Countries>
Look at the XML file: countries. xml ---------------------------------------------------------------------- bind a DataSet to the control list first, import the "System. Data" namespace. We need this name and DataSet object. Includes one of the following commands. Aspx page: <% @ Import Namespace = "System. data "%> Next, create a DataSet XML file and load the XML file to the DataSet webpage. Load the file first: <script runat =" server ">
Sub Page_Load
If Not Page. IsPostBack then
Dim mycountries = New DataSet
Mycountries. ReadXml (MapPath ("countries. xml "))
End if
End sub binds data to the RadioButtonList control. First, it creates a RadioButtonList control (without any ASP: ListItem element. Aspx page: html>
<Body> <form runat = "server">
<Asp: RadioButtonList id = "rb" runat = "server"
AutoPostBack = "True"/> </form> </body>
</Html> Then add the script