O
oliv
Hi,
New to .NET, I was wondering what was the proper way to share a
variable between all the instances of a web page.
I try with a static var, but it does not seem to always work. Why is
that ?
public partial class _Default : System.Web.UI.Page
{
static public string sharedvar;
protected void Page_Load(object sender, EventArgs e)
{
...
thanks
New to .NET, I was wondering what was the proper way to share a
variable between all the instances of a web page.
I try with a static var, but it does not seem to always work. Why is
that ?
public partial class _Default : System.Web.UI.Page
{
static public string sharedvar;
protected void Page_Load(object sender, EventArgs e)
{
...
thanks