As that web-standards geek I am, I dislike the default <form runat='server'> that surrounds my entire webpages. I’ve seen many ASP.NET based webpages that don’t have these, so it seems like it can be removed without taking away any functionality. How?
As that web-standards geek I am, I dislike the default <form runat=server> that surrounds
Share
There will have to be a
<form runat='server'>if you wish to use controls ‘n stuff. Otherwise postbacks are impossible, as is viewstate and the rest of the stuff that .NET depends upon.Are you sure you’ve seen what you’ve thought you’ve seen? Perhaps these pages only contained static content? Or perhaps they were user-controls? Or yet another common possibility – perhaps it was the Master Page that had the
<form runat='server'>?