Completely remove ViewState for specific pages
I have a site that features some pages which do not require any post-back functionality. They simply display static HTML and don't even have any associated code. However, since the Master Page has a <form runat="server"> tag which wraps all ContentPlaceHolder s, the resulting HTML always contains the ViewState field, i.e: <input type="hidden" id="__VIEWSTATE" value="/wEPDwUKMjEwNDQyMTMxM2Rk0XhpfvawD3g+fsmZqmeRoPnb9kI=" /> EDIT: I tried both variants of setting EnableViewState on page level with no luck at all: <%@ Page Language="C#" EnableViewState="false" %> <%@ Page Language="C#"