Controls state

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?TWFyY3VzU3R1ZGVudHVt?=

    Controls state

    Hello there i was using the control state because we have disabled Viewstate
    on a particular page. And i noticed that SaveControlStat e() is called twice.

    If you put a trace.warn in SaveControlStat e you will see it too. It happens
    on Visual 2005 and Vs 2008. I tested it on a totally clean page and it
    happens there too.

    I am wondering is it a bug or is it supposed to be like that? And if it
    supposed to work like that, then i would like to know why?
  • Teemu Keiski

    #2
    Re: Controls state

    Did you note it by turning trace on? When tracing is enabled it is called
    twice to estimate the state size.


    --
    Teemu Keiski
    AspInsider, ASP.NET MVP



    "MarcusStudentu m" <MarcusStudentu m@discussions.m icrosoft.comwro te in
    message news:157238EF-F655-43D9-9970-463ED11FBA2B@mi crosoft.com...
    Hello there i was using the control state because we have disabled
    Viewstate
    on a particular page. And i noticed that SaveControlStat e() is called
    twice.
    >
    If you put a trace.warn in SaveControlStat e you will see it too. It
    happens
    on Visual 2005 and Vs 2008. I tested it on a totally clean page and it
    happens there too.
    >
    I am wondering is it a bug or is it supposed to be like that? And if it
    supposed to work like that, then i would like to know why?

    Comment

    • =?Utf-8?B?TWFyY3VzU3R1ZGVudHVt?=

      #3
      Re: Controls state

      Cool thanks thats really helpfull. Microsoft should write that bit of
      information in
      Saves any server control state changes that have occurred since the time the page was posted back to the server.


      Now i know i should be careful not to change the State in between calls when
      Trace is on. I was totally losed because this is a big page with events
      firing all over the place. :)

      Cheers
      MarcusStudentum

      "Teemu Keiski" wrote:
      Did you note it by turning trace on? When tracing is enabled it is called
      twice to estimate the state size.
      >
      >
      --
      Teemu Keiski
      AspInsider, ASP.NET MVP


      >
      "MarcusStudentu m" <MarcusStudentu m@discussions.m icrosoft.comwro te in
      message news:157238EF-F655-43D9-9970-463ED11FBA2B@mi crosoft.com...
      Hello there i was using the control state because we have disabled
      Viewstate
      on a particular page. And i noticed that SaveControlStat e() is called
      twice.

      If you put a trace.warn in SaveControlStat e you will see it too. It
      happens
      on Visual 2005 and Vs 2008. I tested it on a totally clean page and it
      happens there too.

      I am wondering is it a bug or is it supposed to be like that? And if it
      supposed to work like that, then i would like to know why?
      >
      >
      >

      Comment

      Working...