asp.net mvc - subfolders

后端 未结 4 555
眼角桃花
眼角桃花 2021-01-04 11:17

How does the new Microsoft asp.net mvc implementation handle partitioning your application - for example:

--index.aspx
--about.aspx
--contact.aspx
--/feature         


        
4条回答
  •  难免孤独
    2021-01-04 11:36

    In terms of how you arrange your views, you can put your views in subfolders if you'd like and create your own view structure. All views can always be referenced by their full path using the ~syntax. So if you put Index.aspx in \Views\Feature1\Home then you could reference that view using ~/Views/Feature1/Home/Index.aspx.

提交回复
热议问题