Persisting the Viewstate
Can you perhaps think about persisting the viewstate to the database by default please?
...trying to cut down on the page size...viewstate is a big chunk of it
Hi Steve,
Thanks for the request.
Perhaps you want to reduce the page size to gain some load speed, but persisting it in the database could make the application slower. You will need to make a query to DB in order to load the viewstate. The problem becomes bigger is the DB server is remote to the hosting server.
Let me know if I am missing something.
Yeah I dont know about that...experience here with integrating WAO in sitefinity and non-sitefinity apps is that when we persist to the DB, yes there's a callback, we can cut potentially a couple hundred k (or more) off the page size which reduces the page download meaning physical browser page rendering is happening sooner
...but you know, viewstate in the sites I've created so far isn't that big to warrant it now that I look, heavy backend pages at most for me is around 15%...
Hi Steve,
As you know we stay away from using ViewState in Sitefinity - we rely on Ajax and route handlers. If you need to use view state you can try enabling it only for the controls that need to use view state. This will really keep it down to minimal size.
Best wishes,
Radoslav Georgiev
the Telerik team
Yeah, I poked around with the asp.net viewstate helper, and average you're looking at about 2% viewstate, which is nothing...