Click here to Skip to main content
15,894,896 members
Articles / Web Development / ASP.NET

Another way to moving ViewState to the bottom of page

Rate me:
Please Sign up or sign in to vote.
4.75/5 (4 votes)
19 Apr 2010CPOL 11.8K   6  
On the Web there are many examples for moving ViewState to the bottom of Page using RegularExpressions. This is another way using HtmlTextWriter.All you nees that add in your project class named MoveViewStateHtmlTextWriter and write in your BasePage code below.protected override...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
14 Apr 2011Mike Thom
If you move your ViewState from the top of the page to the bottom, you will get better search engine spidering.Step 1Create a class file in App_code folder of your application and name it as PageBase.cs. Copy the following code to the class file.using System.IO;using...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Ogma Applications
Armenia Armenia
This member doesn't quite have enough reputation to be able to display their biography and homepage.

Comments and Discussions