Web forms v/s xml xsl

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am in the design process of web application. And during this I have a
question as which should be used and in which cases? Should you go for Web
forms utilizing all the features of asp.net server controls or should you
create presentation layer using XML and XSL and not use many of the features
of asp.net..

In which of the scenario each technology should be used?

Any pointers on above would be highly appreciated.

Regards,
Nilay.
 
Well, the ASP.NET newsgroup may not be the best place to get a completely
unbiased opinion, but I believe that ASP.NET is far superior to XSL in
almost every way. They are both mostly used for generating web pages, but
ASP.NET is far more powerful. XSL is more like a basic scripting language.
We've been there (with VBScript) and moved beyond such toys into a serious
programming environment.

That said, XSL can still be useful for other kinds of data transformations.
But for generating HTML pages, stick with ASP.NET.
 
it depends on the your requirements. xml/xlst is handy when the design is a
seperate group from the dev, or ther are lots of variations of the same
page. asp.net is handy for its coding model.

note: xml/xlst sites are difficult to protect againt injection hacks.




| Hi,
|
| I am in the design process of web application. And during this I have a
| question as which should be used and in which cases? Should you go for Web
| forms utilizing all the features of asp.net server controls or should you
| create presentation layer using XML and XSL and not use many of the
features
| of asp.net..
|
| In which of the scenario each technology should be used?
|
| Any pointers on above would be highly appreciated.
|
| Regards,
| Nilay.
 
In my opinion you should alway use Webforms when you want to use controls in
your pages such as textboxes and dropdownboxes. Webpages provide a much
richer programming environment.
You can use xml/xsl as you only want to represent data and want to be able
to easily change the layout. With XML/XSl you only have to change the XSL to
change the layout and there is no need for re-comiling your application.

Keep in mind that you have to pay a performance penalty when using XSL as
the XML is parsed at runtime on the webserver. If you have a lot of hits this
can cause a performance problem.

Regards,
Marco
 
Back
Top