开发者

ASP.NET websites are compiled but with more HTML markup generated!

开发者 https://www.devze.com 2023-01-26 19:04 出处:网络
Everytime I view the source of ASP.NET website I found alot alot of HTML markup generated. I even tried Visual web Developer and design a simple page and then do the same thing with PHP and I found AS

Everytime I view the source of ASP.NET website I found alot alot of HTML markup generated. I even tried Visual web Developer and design a simple page and then do the same thing with PHP and I found ASP.NET generates more HTML!

Now, how开发者_开发技巧 can ASP.NET be faster if it is generating HTML in this way!


Template generation is a very SMALL cost compared to other things that are going on in a web request. ASP.NET offers a lot more than a straight up PHP page (Session/State management etc) and injects additional markup into the response to help with this.

However, your question in general isn't really a question, if you were to take sometime to understand the difference between a web framework and a language.


ASP.NET controls generate extra markup in exchange for "easing" development

0

精彩评论

暂无评论...
验证码 换一张
取 消