locked
Page_Load event in User Controls RRS feed

  • Question

  • User-1654806286 posted

    I'm an asp n00bie at the design stage of re-developing an existing site.  There is a user control that we now need to call a number of times within one page.  This control uses the Page_Load event to set a number of variables that will be specific to each instance of the user control.  From what I can gather I shouldn't have any issues with this but could someone confirm this for me?

    Friday, August 28, 2009 11:40 AM

Answers

  • User-601598575 posted

     Hi,

    Go ahead with this, it will not be a problem as all the instance will have its own copy of variables.

    Regards.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 28, 2009 12:14 PM

All replies

  • User-1360095595 posted

    I don't think you'll have issues.  Each control will have it's own copy of the variables.  Hard to say for sure without knowing more, but I think you'll be OK.

    Friday, August 28, 2009 12:08 PM
  • User-601598575 posted

     Hi,

    Go ahead with this, it will not be a problem as all the instance will have its own copy of variables.

    Regards.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 28, 2009 12:14 PM