Shortened namespace alias in aspx

asp.net

Solution

Try this:

<%@ Import Namespace="Name=Extremely.Long.And.Unwieldy.Namespace" %>

Problem

I have a using statement defined like this in codebehind: ``` using Name = Extremely.Long.And.Unwieldy.Namespace ``` I want to be able to do this in my aspx page: ``` <%=Name.Type %> ``` So far the best I have come up with is this: ``` <%=Namespace.Type %> ``` using the technique shown here. Can I do any better?

Original source

Related problems