HighTechTalks DotNet Forums  

Controlstate confusion

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Controlstate confusion in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
r.vries
 
Posts: n/a

Default Controlstate confusion - 12-26-2007 , 03:50 AM






Hi,

I'm just starting with asp.net and created a toolbar (custom) control.

Everything works fine but when I do a postback a pushed button gets
'the 'unpushed' state...

I'm using LoadControlState and SaveControlState but the events aren't
fired in the order I thought they would.

Postback occured
-LoadControlState fired
-SaveControlState fired

This explains why my button loses its state after a postback.

But why is the state loaded before it is saved?

Best regards,
Ron

Reply With Quote
  #2  
Old   
r.vries
 
Posts: n/a

Default Re: Controlstate confusion - 12-26-2007 , 02:25 PM






ps. I solved 'the pushed button' issue with a hidden field, so I'm not
looking for a solution. :-)
But I'm just a bit confused by the behaviour of saving and loading the
controlstate.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.