Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic object / scope question
Message
From
22/06/2006 18:39:00
 
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01130935
Message ID:
01130996
Views:
14
No prob. Technically it won't be different as the basic problem you have is getting a reference to the master page from content pages.

>Thanks! Bear in mind it is data I want to be globally available, not methods. Sort of the equivalent of Public memvars in FoxPro. (Not my decision! -- I am converting an existing app with beaucoups Public memvars and my marching orders are to do as literal a port as I can).
>
>>I remember seeing code examples in the book I have to show you how to get access to master page methods. I'll try to post an example tonite.
>>
>>>In an ASP.NET 2005 web site app, with VB as the language, I want to create some objects in the main program (master page) that are accessible to all pages in the app. The master page does most of the I/O and the various content pages basically display that data and allow it to be updated. What is a simple way of accomplishing this? I have tried several approaches with nothing but build errors to show for my efforts. Most of the errors are in the content pages, saying oWhatever is not found. Am I missing something similar to FoxPro's EXTERNAL directive?
>>>
>>>Someone told me the objects have to be defined in App_Code to be globally accessible. Is that true?
>>>
>>>Thanks for any advice and guidance.

(On an infant's shirt): Already smarter than Bush
Previous
Reply
Map
View

Click here to load this message in the networking platform