Storing Contained User Controls within Session Object RRS feed

  • Question

  • User-848324551 posted

    If you store a (dynamically-added) web user control as a session object and that web user control is a container for other (dynamically-added) user controls, do the contained user controls also get saved as part of the session object?

    (If possible, please provide any documentary references available.)

    Friday, July 15, 2011 11:36 PM


  • User-1359474226 posted


    Since this is a reference type so when you assign a reference type instance to another instance it is simply copying the pointer. Therefore both instances point to the same data.

    Thank You


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 19, 2011 6:05 AM

All replies