Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 mvc,需要执行以下操作。从局部视图中,我如何动态找到它的名称以及它所在的文件夹的名称?
我是通过控制器和动作名称来做的,但这并没有给出预期的结果。
Using Razor..
@Html.Label(Request.RawUrl) //Action @Path.GetFileName(Server.MapPath(VirtualPath)) //View Name