开发者

What is the aspx/ascx view page equivalent of #include Someplace.Models?

In my Controllers I obviously #include namespaces开发者_运维知识库 so I don't have to write out the entire thing when making objects. What is the way to do this inside the aspx/ascx View files? Currently I am having to write out these entire namespaces and it's getting pretty lame.


You'll want to use the Import directive.

<%@ Import Namespace="Someplace.Models" %>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜