delete viewstate from my aspx result pages?

Discussion in 'ASP .Net' started by =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Oct 21, 2004.

  1. 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?
     
    =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Oct 21, 2004
    #1
    1. Advertisements

  2. "Raed Sawalha" wrote:

    > 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" %>
     
    =?Utf-8?B?VXJvcw==?=, Oct 21, 2004
    #2
    1. Advertisements

  3. 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


    "Uros" wrote:

    >
    >
    > "Raed Sawalha" wrote:
    >
    > > 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" %>
    >
     
    =?Utf-8?B?RXRoZW0gQXp1bg==?=, Oct 21, 2004
    #3
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John M
    Replies:
    1
    Views:
    1,646
    Kumar Reddi
    May 29, 2005
  2. Carl Gilbert
    Replies:
    1
    Views:
    844
    Carl Gilbert
    Jul 8, 2005
  3. moondaddy

    Convert htm pages to aspx pages

    moondaddy, Dec 15, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    3,316
    moondaddy
    Dec 15, 2005
  4. Replies:
    1
    Views:
    792
    Kevin Spencer
    Oct 31, 2006
  5. J.Ram
    Replies:
    7
    Views:
    864
  6. Pavel
    Replies:
    7
    Views:
    799
    Pavel
    Sep 19, 2010
  7. RadioSignal

    passing variables from .aspx.cs code pages to .aspx pages

    RadioSignal, Sep 12, 2005, in forum: ASP .Net Web Controls
    Replies:
    7
    Views:
    3,135
    Mirronelli
    Oct 22, 2005
  8. Michael Tan
    Replies:
    32
    Views:
    1,621
    Ara.T.Howard
    Jul 21, 2005
Loading...