Using default namespaces in .NET MVC for views without using import?

前端 未结 1 672
遇见更好的自我
遇见更好的自我 2021-01-17 13:10

How do you configure the views to able to reference a namespace like System.Web.Mvc without having to do <%@ Import Namespace=\"System.Web.Mvc\" %>? I remember seeing thi

1条回答
  •  死守一世寂寞
    2021-01-17 13:48

    Can you add them in web.config? Don't know if this works in MVC, though...

    
     
        
          
            
            
          
          
     
    
    

    (update - seems to work fine ;-p)

    0 讨论(0)
提交回复
热议问题