J
John Rivers
ASPX which means ASPX pages, the code-behind concept, User Controls,
Web Controls etc. is very poorly designed and makes it extremely hard
to develop professional quality web applications.
ASPX is Microsoft's attempt to "dumb down" web application development
to help unskilled developers such as web design agencies achieve some
results.
For high quality applications IHttpHandlers are the way to go.
To keep a line between the design and the function you can include some
XSLT in the output path.
Now the developer need only output the structural elements of the web
app - forms, form fields, submit buttons, hyperlinks and data
structures in XML-compatible HTML.
Each IHttpHandler will have an associated XSLT, for example:
http://server/path/script.aspx (this is mapped to httphandler)
which processes /path/script.xslt as the final step before output
The XslTransform can callback into the developer using a callback
object and namespace.
Now it is easy to do the following:
- create mostly self generating applications freeing you from the
manual labour that ASPX demands
- redirect after (attempted) state change requests
- form submit with location.replace
You can also include an output validater that logs warnings of invalid
html output.
This approach also makes it quite simple to target your output to XHTML
or HTML4.0 etc.
Shame on the team at Microsoft reponsible for architecting ASPX.
What a load of rubbish.
And I feel sorry for people learning ASPX who haven't yet realised how
bad it is.
They have made the mistake of thinking that whatever comes from
Microsoft must be good.
Not alway true.
Web Controls etc. is very poorly designed and makes it extremely hard
to develop professional quality web applications.
ASPX is Microsoft's attempt to "dumb down" web application development
to help unskilled developers such as web design agencies achieve some
results.
For high quality applications IHttpHandlers are the way to go.
To keep a line between the design and the function you can include some
XSLT in the output path.
Now the developer need only output the structural elements of the web
app - forms, form fields, submit buttons, hyperlinks and data
structures in XML-compatible HTML.
Each IHttpHandler will have an associated XSLT, for example:
http://server/path/script.aspx (this is mapped to httphandler)
which processes /path/script.xslt as the final step before output
The XslTransform can callback into the developer using a callback
object and namespace.
Now it is easy to do the following:
- create mostly self generating applications freeing you from the
manual labour that ASPX demands
- redirect after (attempted) state change requests
- form submit with location.replace
You can also include an output validater that logs warnings of invalid
html output.
This approach also makes it quite simple to target your output to XHTML
or HTML4.0 etc.
Shame on the team at Microsoft reponsible for architecting ASPX.
What a load of rubbish.
And I feel sorry for people learning ASPX who haven't yet realised how
bad it is.
They have made the mistake of thinking that whatever comes from
Microsoft must be good.
Not alway true.