title: How to use Server Controls with PostBack with ASP.NET MVC?
body: <p>Once I click the button, it throws a "Validation of viewstate MAC failed" exception. I know MVC does not support PostBack but is there any way to work around this?</p>
  
  <p>Or we need to use HtmlHelper in MVC?</p>
  
  <p>Below is my code in View:</p>
  
  <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&gt;
  
  &lt;form id="form1" runat="server"&gt;
  
  &lt;h2&gt;Hello World&lt;/h2&gt;
  
  &lt;asp:Label ID="Label1" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  
  &lt;asp:Button ID="Button1" runat="server" Text="Button" /&gt;
  
  &lt;/form&gt;
  
  &lt;/asp:Content&gt;
  </code></pre>