delete viewstate from my aspx result pages?

G

Guest

I'd like to optimize my aspx pages for Search Engines like google. One thing
I have to do is to minimize or delete the viewstate hidden input field. I'm
using user controls, so in both pages and user controls I considered the tag:
EnableViewState="False". The problem is that viewstate is still in the result
pages.

How can I delete viewstate from my aspx result pages?
 
G

Guest

Raed Sawalha said:
I'd like to optimize my aspx pages for Search Engines like google. One thing
I have to do is to minimize or delete the viewstate hidden input field. I'm
using user controls, so in both pages and user controls I considered the tag:
EnableViewState="False". The problem is that viewstate is still in the result
pages.

How can I delete viewstate from my aspx result pages?

Hi,

try to turn off view state for entire page.

<%@Page EnableViewState="False" %>
 
G

Guest

Hi Raed,

After you disable the ViewState on the page and control level, if you are
still getting seeing the viewstate on the page ultramagically, you can try
enabling tracing on the page and look who's calling it. You will have to look
for LoadViewState and SaveViewState() being called. One should happen after
Init() and the latter after PreRender().

Hope this helps,

Ethem
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top