asp.net mvc - Namespace in view

前端 未结 4 1205
失恋的感觉
失恋的感觉 2021-02-19 02:52

I place using namespace in a view code behind but i can\'t call any class of this name space in aspx.

In codebehind:

using MVCTest.Controller;

4条回答
  •  佛祖请我去吃肉
    2021-02-19 03:26

    try to use in your aspx / ascx file

    <%@ import namespace='your namespace' %>
    

    you could also try to import your namespace in the web.config

    
      
        
          
        
      
    
    

提交回复
热议问题