The XML file is as follows:
<?xml version="1.0"encoding="Utf-8"?><callreson> <!--electronic Yellow Pages--<eyellow value="0"Name="Cancel Business"/> <eyellow value="1"Name="Consulting E-Yellow pages related platform"/> <eyellow value="2"Name="Modify SMS"/> <eyellow value="3"Name="Business Opening"/> <!--Flow SMS--<flowsms value="0"Name="There is demand for the month, do not"/> <flowsms value="1"Name="by day billing SMS misleading, to cancel"/> <flowsms value="2"Name="wrong operation to cancel"/> <flowsms value="3"Name="Consultation Order Failure Reason"/> <flowsms value="4"Name="subscription Success traffic not in account"/> <flowsms value="5"Name="Consultation Order Failure Reason"/> <flowsms value="6"Name="product rules are unclear (first month billing, traffic is not clear 0, automatic renewal of the package, etc.)"/> <flowsms value="7"Name="other"/> <!--Flow Client--<flowclient value="0"Name="Rush Flow (Prepaid, pending confirmation)"/> <flowclient value="1"Name="The order is successful, the traffic is not accounted for"/> <flowclient value="2"Name="Querying Traffic"/> <flowclient value="3"Name="product rules not clear"/> <flowclient value="4"Name="Event Giveaway Traffic not in account"/> <flowclient value="5"Name="Verify subscription, user denies"/> <flowclient value="6"Name="Two verification-free subscription, user denied"/> <flowclient value="7"Name="two orders not approved by the user"/> <flowclient value="8"Name="New User installs red envelopes complaint"/> <flowclient value="9"Name="Reminder return fee (confirmed refund, single return fee not credited)"/> <!--Rui Peng--<RP value="0"Name="116114 Telephone Certification"/></callreson>
The background bindings are as follows:
DataSet ds =NewDataSet (); Ds. READXML (Server.MapPath ("~/xml/xmlcheckcallreson.xml")); Checkboxlist1.datasource= ds. tables[0]; Checkboxlist1.datatextfield="name"; Checkboxlist1.datavaluefield="value"; Checkboxlist1.databind (); Checkboxlist2.datasource= ds. tables[1]; Checkboxlist2.datatextfield="name"; Checkboxlist2.datavaluefield="value"; Checkboxlist2.databind ();
XML file binding chenckbox selection box