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

前端 未结 4 1646
日久生厌
日久生厌 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:15

    The form element is essential for ASP.NET to work correctly. It is necessary to post the user-input back to the webserver.

    I suggest you take a look at the ASP.NET viewstate to understand how this works..

    The only scenario in which you can remove that element, is when using purely static HTML inside the .aspx file.

提交回复
热议问题