Vulnerability in EPiServer.Forms
is there a standard snippetcode or fix to place the viewstate code to the bottom of the page and by that make it more Google Friendly?
(Google only indexes the first (n) bytes of the page)
If you are running EPiServer CMS 5, you will find a class called ViewStateMover.cs shipped with the EPiServer templates. Just include the class in you project and enable the ViewStateMover in Web.Config (<add key="enableViewStateMover" value="true" /><add key="enableViewStateMoverWhitespaceRemoval" value="true" />), and you are good to go :)
Yes I found that directly after I posted this one and will use it in my CMS 5 project but I was looking for a quickfix for a old CMS 4.5But I will also test to set viewState=false on some pages
There was the old SEOViewState addon to EPiServer that automatically moved the large viewstate data to the end of the HTML page.
I've used it and it was really easy. I think I got it from the EPiMore page. Have a look around.