Wednesday, December 15, 2010

"using" directive in aspx's pages.

It is funny but I don't know about this. I used full name of type (namespace+type name) in aspx pages. It is unnecessary. ASP.NET has directive for this.
<%@ Import namespace="value" %>
Sometime we omit in haste important things.

UPD: And more easy for Razor view engine:
@using MyNamespace