You'll likely run into problems because the class is not really in sync with
the page life cycle. For instance, when you instantiate your class, do
something and then try to push back to the page, it may not be there, it
could have already left for the client. Or it could be serviced on another
thread entirely depending on how you structure the page. Anyway, what you
are trying to get to is most likely the current request and not the page
itself. In that case, use context.current
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on
www.lulu.com/owc $15.00
Need a free copy of VSTS 2008 w/ MSDN Premium?
http://msmvps.com/blogs/alvin/Default.aspx