LoveToCode
MIS
- Jan 11, 2007
- 51
Hello,
I have a page that includes an ASCX file. In the ASP.NET page there is an object created, say User object.
I pulled some stuff that needs to be shared to multiple pages into a user control. The code in that uc needs an instance of the user object. I'd hate to have to reinstatite it and load it if I can just access the root pages shared objects.
So when you stick a user control into a page does it inherit any of its local objects or do I need to pass in things to the usercontrol via params?
Thanks!
-- jq
I have a page that includes an ASCX file. In the ASP.NET page there is an object created, say User object.
I pulled some stuff that needs to be shared to multiple pages into a user control. The code in that uc needs an instance of the user object. I'd hate to have to reinstatite it and load it if I can just access the root pages shared objects.
So when you stick a user control into a page does it inherit any of its local objects or do I need to pass in things to the usercontrol via params?
Thanks!
-- jq