Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Data source for server controls

Status
Not open for further replies.

desi2002

Programmer
Jan 4, 2002
24
IN
Hello,
here is the task I need to complete.

I have an xml file which describes fields in the form like this.

<?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?>
<FORMS>
<form id=&quot;1&quot;>
<title>Resource Details</title>
<elements>
<element id=&quot;1&quot; text=&quot;Category&quot; type=&quot;multiple&quot; required=&quot;yes&quot;>
<values>
<value id=&quot;1&quot;>Category 1</value>
<value id=&quot;2&quot;>Category 2</value>
<value id=&quot;3&quot;>Category 3</value>
</values>
<validation>Please choose a category</validation>
</element>
<element id=&quot;2&quot; text=&quot;Name&quot; type=&quot;single&quot; required=&quot;yes&quot;>
<values>
<value id=&quot;1&quot;>Name Test</value>
</values>
<validation>Please enter a name</validation>
</element>
<element id=&quot;3&quot; text=&quot;Description&quot; type=&quot;single&quot; required=&quot;no&quot;>
<values>
<value id=&quot;1&quot;>Description Test</value>
</values>
<validation>
</validation>
</element>
</elements>
</form>
</FORMS

I want to use this xml file to design a form (in .aspx file).
Does any body how to do it in .NET (C#) I also need to include validation control in the form.
Please help. It is urgent.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top