CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Peter's Gekko

public Blog MyNotepad : Imho { }

(Viewstate) Size (really) matters 34ft5#4

Last november I blogged in detail on reducing the viewstate size of a page with a dtagrid or a datalist. This week I saw the app concerned in its production environment. It was a cripple duck, now it is a swift. Yep, size does matter.

blog on, Peter



Comments

Scott Galloway said:

Hi, you can also compress ViewState - I made a start on this here: http://www.mostlylucid.co.uk/posts/694.aspx
# January 16, 2004 8:30 AM

Peter van Ooijen said:

Scott, compressing is cool, it will save on the precious bandwitch.
But my main point is that you don't need the viewstate at all for most controls. Default it is switched on, one of the fisrt things you should do after dropping a control on your form is disable the viewstate.
# January 22, 2004 2:16 AM

dgoyani said:

I have heard that when viewstate reaches a limit, proxy servers tend to truncate it. I would like to know how can I set that size OR which factors decide upto what size proxy server would allow without any alter.

Thanks,

dgoyani

dgoyani@gmail.com

# August 3, 2007 4:04 AM

pvanooijen said:

You can influence the size of the viewstate by disabling it for controls which don't need it. Watch out when doing that, disabling a control's viewstate will also disable the viewstate of the controls owned by the control (up the tree).

I havn't heard of this proxy server thing yet. If so, it will depend on the proxy server, so it's out of your app's control.

# August 17, 2007 9:39 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add
Check out Devlicio.us!