ControlState problems

H

Hans Kesting

Hi,

I am trying to make a Control that stores some values in
"ControlState".
But it seems as if LoadControlState is never called. Did I miss
something?

override OnInit to call Page.RegisterRequiresControlState(this);
implemented "protected override object SaveControlState()"
implemented "protected override void LoadControlState(object
savedState)"

In both SaveControlState and LoadControlState I have put breakpoints
and Debug.WriteLine commands.
The breakpoint in Save.. is hit and I see the Debug.WriteLine message
appear in the Output window.
The breakpoint in Load.. is never hit and I do NOT see any message.

Any ideas?
I'm using VS2008 and framework 3.5

Hans Kesting
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top