CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 12/13/2004 12:28:33 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 0 Views: 36 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
whatthe10
Asp.Net User
Why do controls which require postback get stored in viewstate?12/13/2004 12:28:33 PM

0

Hi,

When you call Page.RegisterRequiresPostBack, the control to be registered is stored in viewstate so that, upon the postback request, asp.net knows to call the control's IPostBackDataHandler methods.

Well, why not just have the control register for postback data handling at onInit? That way you could cut down on the size of viewstate.

This appears to be how the similar function Page.RegisterRequiresRaiseEvent works. Please correct me if I'm wrong but you have to call this function during the page request that you actually want to handle the post back event for.

Cheers,

WT.
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Beginning Visual Basic 2005 Databases Authors: Thearon Willis, Pages: 736, Published: 2005
Developing and Implementing Web Applications with Visual Basic .NET and Visual Studio .NET: McAd Exam Cram 2 : Exam 70-305 Authors: Kirk Hausman, Mike Gunderloy, Ed Tittel, Pages: 579, Published: 2003
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Beginning ASP.NET 2.0 in C# 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1148, Published: 2006
MCAD/MCSD: Designing and Implementing Web Applications with Visual C#.NET and Visual Studio.NET Authors: Amit Kalani, Pages: 1164, Published: 2002
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005

Web:
FAQ: Why do dynamic controls disappear on postback and not raise ... to work correctly, you'll need to get them all recreated by the Page_Load event at the latest. ... postback 'check our page property (that we stored in viewstate) .... The dynamically created control will disappear on postback why .... If you need to access viewstate you can initalize/create dynamic ...
Understanding ASP.NET View State This hidden form field can easily get very large, on the order of tens of .... The server control would then update its state based on this postback data. ..... NET then this information doesn't need to be stored in the view state. ..... but for those that do, the view state is persisted entirely on the Web ...
Why do dynamic controls disappear on postback and not raise events ... to work correctly, you'll need to get them all recreated by the Page_Load ... when it's a postback 'check our page property (that we stored in viewstate) to ...
Minimize a DropDownList's ViewState We need to maintain ViewState in this DropDownList so that we can retrieve ... on each postback, but without requiring any data stored in the ViewState at all. ... to ViewState are being tracked, so the items never get stored in ViewState. ... NB: You have to do this in the Init even of the control, not the page, ...
It Could Be Done!: Dynamically Created Controls: Dynamic Rows Sample The WebUserControl class exposes events and properties required to ... Each dynamically created control must get its unique ID and this ID ... So, you need to create your rows on each postback. Information stored in .... Do not forget to update view state data used to reconstruct controls on the next postback. ...
Understanding ViewState in ASP.NET :: DotNetJohn Oct 29, 2007 ... The ViewState for the controls in a page is stored as base 64 encoded ... For pages and controls that do not require a post back at all, ...
.NET ASP.NET Dynamic controls, postbacks, and view state 2. if not PostBack: get a handle on the controls and set the checked/unchecked ... but its there. if you use viewstate the html is not stored, ... The purist in me doesn't like to do the same work twice but I guess ...
ASP.NET Resources - ASP.NET State Management: View State Even a slight page postback initiates the same request sequence and the web ... As a rule, view state is stored right in the page and therefore it travels with ... Some controls get their values restored automatically (courtesy of ASP. ..... you do need to maintain view state at the expense of serving larger pages, ...
CodeProject: Help! My ViewState Is Out Of Control. Free source ... Sep 20, 2003 ... It doesn't look like it should need to store ViewState , but in certain .... that values do get set on controls on postback even if the viewstate is ... almost every property is stored in ViewState for every WebControl. ...
ASP.NET 2.0 Performance Guidelines - View State - Guidance Share Dec 12, 2007 ... Identify pages that do not post back and all server controls on ... Analyze the code and determine the number of objects that are being stored in ViewState, ... LargeDataObject { get { return Session["LargeDataObject"]; ...












aardvark bug tracking for dnn

one user in multiple portals - bug

dnn 2.12 membership services

is it possible to use both public and private registration on same site?

dnn 3.0.13: skin keeps reverting to default light blue. how do i debug this?

componentart snap

is there a list of all used css in dnn

when new forum will be available?

3.0.x issue - editing the host or admin user accounts

where is a farsi calendar?

links vs menu

single dnn install for 2 customers on separate domain accounts with emails on 1 database?

visibilitystate.minimized

developers tip - change your projectguid

borrowing ideas from existing dnn implimentation

xml & css issues

database issues

dnn2 data access best practices

dataloss 3 times with dnn3, 2 different portals . . .

inter module communication?

htmleditorprovider definition in web.config

app pool size for typical dnn install..

vswebcache - process cannot access the file because it is being used

from 2.1.2 to 3.1 or 2.1.2 to 3.0.13 to 3.1

module installed but cannot find stored procedure!

dotnetnuke and msde

easy navigation module on snowy

type dataprovider is not defined (contacts module)

crystal to active reports and dnn integration

updating freetextbox version?

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT