ASP.NET Views: Avoiding using <%@ Assembly... in every .aspx -


In my web site, almost every .aspx page should have its top to work correctly: < / P>

  & lt;% @ assembly name = "System.Web.Mvc, version = 3.0.0.0, culture = neutral, public token = 31bf3856ad364e35"%>   

Anyway, can I avoid declaring it in every .aspx view for every page? Is there no way that I can declare for all .aspx ideas globally? Maybe something in web.config?

Add it

  & lt; Assemblies & gt; & Lt; Add assembly = "System.Web.Mvc, version = 3.0.0.0, culture = neutral, public token = 31bf3856ad364e35" /> & Lt; / Assemblies & gt;   

@Assembly instructions does not conform to assemblies tags in the webpage, there is no name tag. Check

Comments