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:
How can I get around this.Code:Invalid token 'namespace' in class, struct, or interface member declaration
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?




Reply With Quote