Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Event processing and viewstate build-up

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
msch.prv@gmail.com - 06 Feb 2008 15:21 GMT
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.
Scott Roberts - 06 Feb 2008 15:28 GMT
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).

> Thanks for bearing with me. I am confronted with huge hidden
> viewstates fields in some pages and looking for ways to make these
[quoted text clipped - 6 lines]
> possible to selectively filter out portions of the viewstate to just
> support event handling? TIA for any pointers.
bruce barker - 06 Feb 2008 15:57 GMT
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)

> Thanks for bearing with me. I am confronted with huge hidden
> viewstates fields in some pages and looking for ways to make these
[quoted text clipped - 6 lines]
> possible to selectively filter out portions of the viewstate to just
> support event handling? TIA for any pointers.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.