The namespaces element in web.config defines a collection
of import directives to use during assembly pre-compilation.
This attribute corresponds to the @ Import directive on an ASP.NET page.
<configuration
xmlns="
http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<pages>
<namespaces>
<add namespace ="System.IO" />
<add namespace="System.Text"/>
</namespaces>
</pages>
</system.web>
</configuration>
Now, you can use System.IO and System.Text in any page without
specifically importing them.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
======================================