Reputation: 43813
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.
Upvotes: 1
Views: 347
Reputation: 155925
You'll want to use the Import
directive.
<%@ Import Namespace="Someplace.Models" %>
Upvotes: 5