viewstate gets too big

  • Thread starter Thread starter graphicsxp
  • Start date Start date
G

graphicsxp

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?
 
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
 

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

Back
Top