Ave populus
sto facendo una pagina aspx dove tengo in un file esterno il codice, quindi la direttiva @Page è:
codice:
<%@ Page Language="C#" src="src/test.cs" ContentType="text/html" %>
ed il file src/test.cs è così:
codice:
void Page_Load(Object Src, EventArgs E) {
	msg.Text = "Hello World";
}
ma richiamando la pagina dà questo errore:
Server Error in '/Aki' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request.
Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0116: A namespace does not directly contain members such as fields or methods

Source Error:

Line 1: void Page_Load(Object Src, EventArgs E) {
Line 2: msg.Text = "Hello World";
Line 3: }


Source File: D:\www\aki\src\test.cs Line: 1
come mai???