Jump to content

Recommended Posts

Posted

The ASP.NET Control syntax is nice and all, but ultimately it's a mix of server and client side put together, along with a dollop of presentation logic.

 

I was wondering if anyone created an XForms->ASP.NET engine, or something simpler: if there's a simple XML document defining a boring data entry form in terms of the data it collects (with no regard to the surrounding XHTML). A simple conversion process converts it to an ASP.NET Web form either at compile-time or Application_Start-type.

 

So rather than having to define the form's markup and all the fields within and mess around with control adapters and validators and the like you just have:

 

 

 

***

 

 

 

 

 

 

 

Which converts it nicely to:

 

 

 

FieldValue

 

 

 

Your Name

 

 

 

 

 

 

 

 

Your address

 

 

 

Actions

Send form

 

 

 

Waaay more readable, but just as functional, and compensates for ASP.NET's at-times verbose syntax. Of course you could swap out my generator for one that spits out ugly, presentational HTML with elements, but that's your call ;)

 

And you could easy get it to render the same form using WinForms controls as well.

 

But ultimately it's a kind of "XForms Lite", but given the lare number of "boring forms" people are tasked with creating I reckon it would be of use.

 

....would you use it?

 

And has anyone done it already?

 

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...