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

How to Create a Global BLL

Status
Not open for further replies.

jbtman

Programmer
Jul 13, 2007
30
I have several classes (Customer for instance) that all get populated via calls to a BLL class. Is it possible for each page to get access to that sessions BLL class so that the data populated from the previous class is not lost?

For instance:

Default.aspx gets instance of BLL and does login and populates customer

User is transferred to Main.aspx

Can Main.aspx get an instance of the BLL where the previously populated data exists?

Thanks!!
 
That is what I have been trying to figure out but it hasn't worked for me yet :(

I declared the class this way first

Public GlobalBLL as BLL

then this way

<object id="GlobalBLL" runat="server" class="BLL" scope="Session" />

But I can't seem to get an instance of it in my pages via

LocalBLL = Session("Global.BLL") or another method that I tried but can't remember.
 
WOW, the whole problem was that I was referencing the object via Session("Key"), switched it to Session.Item("Key") and off to the races!


Thank you so much for the help!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top