i prefer single-source pages to using code-behind pages when i develop using C#, but when i attempt to create a namespace in the .aspx page within the <script runat="server"></script> tags, i get the following error:

Code:
Invalid token 'namespace' in class, struct, or interface member declaration
How can I get around this.

my second question is in addition to creating namespaces in the same single-source page, how can i create namespaces that are project-wide in scope, the same way classes are via a Class (.cs) file?