viewstate gets too big

Discussion in 'ASP .Net' started by graphicsxp, Jul 4, 2006.

  1. graphicsxp

    graphicsxp Guest

    Hi,
    I generate html content dynamically at page loading (if not postback)
    which is then assigned to the Text property of a Litteral asp.net
    control.
    The issue is that if there is too much html assigned, the viewstate
    gets way too big and the application's performances are pulled down.
    If I disable the viewstate then ovbviously the content is lost after
    first postback.

    Can I render dynamic html without using the viewstate?
    graphicsxp, Jul 4, 2006
    #1
    1. Advertising

  2. sure you can, viewstate is only needed as a way to preserve the state of the
    page.

    --
    ________________________
    Warm regards,
    Alvin Bruney [MVP ASP.NET]

    [Shameless Author plug]
    Professional VSTO.NET - Wrox/Wiley
    The O.W.C. Black Book with .NET
    www.lulu.com/owc, Amazon
    Blog: http://www.msmvps.com/blogs/alvin
    -------------------------------------------------------


    "graphicsxp" <> wrote in message
    news:...
    > Hi,
    > I generate html content dynamically at page loading (if not postback)
    > which is then assigned to the Text property of a Litteral asp.net
    > control.
    > The issue is that if there is too much html assigned, the viewstate
    > gets way too big and the application's performances are pulled down.
    > If I disable the viewstate then ovbviously the content is lost after
    > first postback.
    >
    > Can I render dynamic html without using the viewstate?
    >
    Alvin Bruney [MVP], Jul 6, 2006
    #2
    1. Advertising

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. Replies:
    7
    Views:
    10,516
  2. Shaguf
    Replies:
    0
    Views:
    346
    Shaguf
    Dec 24, 2008
  3. Shaguf
    Replies:
    0
    Views:
    443
    Shaguf
    Dec 26, 2008
  4. Shaguf
    Replies:
    0
    Views:
    229
    Shaguf
    Dec 26, 2008
  5. Shaguf
    Replies:
    0
    Views:
    211
    Shaguf
    Dec 24, 2008
Loading...

Share This Page