Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've been working on an asp.net project for over 2 months now. I was working on my local machine, so I never cared about the size of the page. But lately I started checking the viewstate of my pages, and, they were big. The smallest was about 8KB. Some reached to about 100KB.......

 

Any suggestions or ideas on how to reduce the size of the viewstate....

 

Thanks

Proudly a Palestinian

Microsoft ASP.NET MVP

My Blog: wessamzeidan.net

  • Moderators
Posted

Set EnableViewState to False on any control that does not need it, if the control is populated on each postBack wheather from cache or DB then you don't need the viewstate.

Don't go crazy and disable all of them in one shot, do it by section and unit test each occurance.

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...