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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One object for all webparts in a page?

Status
Not open for further replies.

MarcBey

Programmer
Apr 13, 2005
10
CH
Hey devs,

how is it possible to work with an object which is available for all webparts on one page?

One idea:
How can I apply a superior object (which will be initialized by an aspx-control in the SP-template) through several webparts on the same page?

Thanks a lot for any clues!

Cheers,
Marc
 
I think you need to explain a bit more in what you want to do... it doesn't really work the way you are discribing.

Greetings
 
Hey Chaser,


imagine you integrate a Aspx-Control in a wss-template.
This control initializes an object that retrieves some data from the database.

As this data should be applied in each webpart of the wss-page, I need a possibility to access this superior object from the control to use the data of it.

Otherwise I had to retrieve the data of the database several time per page, once for each webpart.

I hope you get the point now!?


Cheers,
Marc
 
I've been into something similar.

The solution was to create "the superior object" (only once) and then cache it, then each web part using this data just got a copy of the cached object.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top