Dynamically generate form from XML & XSD?

S

Scott Zabolotzky

I'm sure somebody has to have done this already but I can't find
any good references.

If I have an XML file with an associated XSD what is the best way
to dynamically generate a web form with proper controls for the
various elements in the XML file?

I found an article that describes how to do it using stylesheets
(http://www.dnzone.com/ShowDetail.asp?NewsId=151) but it's a little
cumbersome and was tailored to .NET 1.1.

Is there a better way to do this with .NET 2.0?

Scott
 
G

Guest

Currently, I'm developing an application which does exactly that.
The controls are created in viewstate dynamically and event handlers are
associated with the dynamic control events.

It's quite a long story to describe how to go about it. The secret is to use
viewstate.
Also, store the page's viewstate to a sqlserver 'cause the viewstate size
increases pretty quickly.

The application also allows the user to add control groups or individual
controls(identical to adding xml nodes or xml controls) and stores the screen
values in an xml document. It also recreates the page controls based on xml
document tree structure.

You might want to try developing controls from xml documents with just one
node.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,235
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top