When developing ASP.NET web applications libraries are usually used by including them in the code behind files. On a recent project, which involved maintenance of a client’s existing web application .NET libraries were required for use on the web page but there was no access to the page’s code-behind file.
There is a way to include required namespaces directly within aspx files - in the event that namespaces need to be imported within aspx files you can use the <%Import %> directive.
Example:
<%@ Import namespace=”Enter.Namespace.Here” %>