If you move your ViewState from the top of the page to the bottom, you will get better search engine spidering.
Step 1
Create 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 System.Web.UI;
namespace WebPageBase
{
public class PageBase : System.Web.UI.Page
{
protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
StringWriter sw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
base.Render(hw);
string html = sw.ToString();
hw.Close();
sw.Close();
int start = html.IndexOf(@"<input type=""hidden"" name=""__VIEWSTATE""" );
if (start > -1)
{
int end = html.IndexOf("/>", start) + 2;
string strviewstate = html.Substring(start, end - start);
html = html.Remove(start, end - start);
int formend = html.IndexOf(@"</form>") - 1;
html = html.Insert(formend, strviewstate);
}
writer.Write(html);
}
}
}
Step 2
Inherit your aspx pages from the base class.
public partial class Page : WebPageBase.PageBase
{
}