ControlState problems

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hans Kesting

    #1

    ControlState problems

    Hi,

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

    override OnInit to call Page.RegisterRe quiresControlSt ate(this);
    implemented "protected override object SaveControlStat e()"
    implemented "protected override void LoadControlStat e(object
    savedState)"

    In both SaveControlStat e and LoadControlStat e 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


Working...