Event processing and viewstate build-up

M

msch.prv

Thanks for bearing with me. I am confronted with huge hidden
viewstates fields in some pages and looking for ways to make these
pages leaner.

My problem hinges on how to efficiently handle events that rely on
viewstate data (SelectedIndexChanged, etc.). Are there any
alternatives for processing data control events (eg. gridview/datalist
etc.) that would not depend on the viewstate? Alternatively, is it
possible to selectively filter out portions of the viewstate to just
support event handling? TIA for any pointers.
 
S

Scott Roberts

Simply turning off viewstate for controls that do NOT fire events may help
substantially. If not, you might consider server-side viewstate (Google for
articles/blogs).
 
B

bruce barker

I always run with viewstate turned off. just initialize the controls in
oninit, and all events will fire. i generally have no code in onload, only
oninit, prerender and event handlers.

-- bruce (sqlwork.com)
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top