Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Darcy Jones   on Feb 20 In Asp.net Category.

  
Question Answered By: Tracy Myers   on Feb 20

Infact I have 2 different pages. Now when say page 1 loads I create an object  of say Class X in the code behind. If the user clicks a hyperlink on Page1 then the Page 2 loads and the Class Y constructor (in the code behind of Page 2) is called. I wish I could pass the Class X object or its reference (not sure if we can do that in managed C#) in the Class Y constructor so that I could still use the Class X object. Do you think we can do this? If yes, then how to overload the call.

Otherwise can I use the Class X object in Class Y. I can't see it the browser object perhaps because it goes out of scope when page 1 unloads.

Share: