Adding a custom HTML Helper to MVC Project

前端 未结 2 2004
独厮守ぢ
独厮守ぢ 2020-12-30 14:49

I\'ve been browsing the web trying to find a good example/tutorial detailing how I can create and use my own custom HTML Helpers for my MVC 3 Razor application I found this

2条回答
  •  一整个雨季
    2020-12-30 15:32

    You should include the namespace in your view:

    @using MyWebApp
    

    Or you can import this namespace for all of the views from web.config.

    
      
        
          
          
          
          
          
          
        
      
    
    

提交回复
热议问题