Author: Anarkin | Posted on: 3/2/2010 7:51:24 AM | Views : 420

Hi,
I've made a topic yesterday: http://forums.asp.net/p/1531303/3707746.aspx#3707746


I use a global "Tools" class, the entire site is built on it:

public static wsVantagePage CurrentPage { get { return HttpContext.Current.Handler as wsVantagePage; } } public static wsBaseVantageTools CurrentInstance { get { Page Page = wsBaseVantageTools.CurrentPage; if ((Page != null) && (Page.Session["tools"] != null) && (Page.Session["tools"] is wsBaseVantageTools)) { return Page.Session["tools"] as wsBaseVantageTools; } else return null; } }
And at the very begining of picture.aspx.cs, I just run this code: 

Tools = (wsVantageTools.CurrentInstance ?? new wsVanta ...

Go to the complete details ...