Y
Yuancai \(Charlie\) Ye
Hi, All:
I just started to learn ASP.net. There is one problem troubling me that
I don't know how to get an application instance from a page. What I want is
to do something as demonstrated in the following:
private void Page_Load(object sender, System.EventArgs e)
{
Global MyAppInstance = (Global)this.SomeProperty;
or
Global MyAppInstance = (Global)GetMyApplicationInstance();
or
.......
}
Please give me a handle for a newbie with Asp.Net. Thank you very much.
I just started to learn ASP.net. There is one problem troubling me that
I don't know how to get an application instance from a page. What I want is
to do something as demonstrated in the following:
private void Page_Load(object sender, System.EventArgs e)
{
Global MyAppInstance = (Global)this.SomeProperty;
or
Global MyAppInstance = (Global)GetMyApplicationInstance();
or
.......
}
Please give me a handle for a newbie with Asp.Net. Thank you very much.