Avoiding duplicate namespace on aspx page

Is it possible to write the namespace into some other file, which usually should include my page.

namespace like: using System;

+5
source share
1 answer

In web.config, add the namespaces section as follows:

<system.web>
        <pages>
              <namespaces>
                    <add namespace ="...your namespace..." />
                    ...
              </namespaces>
              ...
        </pages>
        ...
</system.web>
+3
source

All Articles