troubleshooting Question

Create a HttpModule to place ViewState at bottom of page - sample already provided.

Avatar of smacca
smaccaFlag for Australia asked on
C#ASP.NETWeb Applications
8 Comments1 Solution666 ViewsLast Modified:

I have provided a BasePage OnRender sample that grabs the viewstate and places it at the bottom of the page to improve Search Engine Optimisation.

However, I would like to improve my architecture and create a HttpModule that does the work for me.
I have provided code for .NETv1.0 that ensures valid XHTML is output for .NETv1.0 sites (i.e. viewstate must be put within DIV tags and form must use 'id' attribute instead of name). This will provide a great example of how to achieve what I am after.

This code will be great for all .NETv2.+ developers working on web projects.

Any help would be appreciated.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros