A
AC
I have a page class that inherits the System.Web.UI.Page class. Essentially what it does is load a user profile from a session (if it isn't loaded, it loads it into the session) and exposes it via a public property. This works just fine.
I have user controls that require the profile as well and I was coding it to work in the same way (created a class that inherits the System.Web.UI.UserControl class. It does the exact same thing as the page class I created.
My question is I'm wondering if I'm doing more owrk than is necessary. Can the UserControl see the page object? If it can, what's the execution order (would the control execute before the page so the user control wouldn't have access to the profile)?
Thanks in advance.
I have user controls that require the profile as well and I was coding it to work in the same way (created a class that inherits the System.Web.UI.UserControl class. It does the exact same thing as the page class I created.
My question is I'm wondering if I'm doing more owrk than is necessary. Can the UserControl see the page object? If it can, what's the execution order (would the control execute before the page so the user control wouldn't have access to the profile)?
Thanks in advance.