How to get rid of the “default” form-element from a .aspx-page?

前端 未结 4 1651
日久生厌
日久生厌 2021-01-23 03:15

As that web-standards geek I am, I dislike the default

that surrounds my entire webpages. I\'ve seen many ASP.NET based webpages that
4条回答
  •  臣服心动
    2021-01-23 04:04

    In scenarios where there is no tag, you are most likely looking at a site built in ASP.NET MVC, as one of the commenters mentioned. ASP.NET MVC does not use server controls, Viewstate or the other features provided by server-side forms, instead using a closer-to-HTML model with relatively simple inline scripting.

    On the plus side, you're much closer to straight HTML (in fact, you ARE essentially straight HTML), so it's easier to perform Javascript operations, integrate custom UI widgets, etc.

    On the (potentially) minus side, if you have a heavy investment in ASP.NET WebForms controls and technologies, those are not typically out-of-box compatible with the new MVC framework. Also, there is a learning curve associated with it. (I'm just getting into it now.)

    For more on ASP.NET MVC, see the official site. As others have mentioned, SO is built on this technology.

提交回复
热议问题