Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sharing objects to a usercontrol

Status
Not open for further replies.
Jan 11, 2007
51
0
0
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top