Thursday 15 July 2010

c# - ViewState in the ASP.NET, does it really go away? -


I have read various topics, tutorials etc .. There is a notification everywhere asp.NET MVC In the viewstate content is not an advantage for / containg.

Really?

So ... how could this (see screenshot)?

As you can see in the screen, this is not a WebForms project.

Why asp.NET MVC project?

  & lt; Form class = "form-horizontal" id = "mainframe" runat = "server" & gt;   

If you are using runat = "server" , then you are invoking webforms; Do not do this, it's MVC - you do not need it. Just change it to:

  & lt; Form Category = "Form-Horizontal" id = "Mainform" & gt;    

No comments:

Post a Comment