R
Ronnie
I've created a simple web application using VS2005 Beta 2.
Basically, I've added a Web Form and a Global.asax file.
In my Global.asax, I create a method like:
public static void TestGlobal() {
throw new Exception("Foobar");
}
The problem, however, is that I cannot gain access to this method from the
form class, i.e., this code fails:
protected void Page_Load(object sender, EventArgs e) {
Global.TestGlobal(); // Intellisense claims no class Global exist.
}
You would write like this in ASP.Net 1.1, but how would you access methods,
enums, etc in Global.asax in ASP.Net 2.0?
Ronnie
Basically, I've added a Web Form and a Global.asax file.
In my Global.asax, I create a method like:
public static void TestGlobal() {
throw new Exception("Foobar");
}
The problem, however, is that I cannot gain access to this method from the
form class, i.e., this code fails:
protected void Page_Load(object sender, EventArgs e) {
Global.TestGlobal(); // Intellisense claims no class Global exist.
}
You would write like this in ASP.Net 1.1, but how would you access methods,
enums, etc in Global.asax in ASP.Net 2.0?
Ronnie