Render partial from different folder (not shared)

前端 未结 10 1988
名媛妹妹
名媛妹妹 2020-11-29 17:12

How can I have a view render a partial (user control) from a different folder? With preview 3 I used to call RenderUserControl with the complete path, but whith upgrading to

10条回答
  •  情歌与酒
    2020-11-29 17:16

    you should try this

    ~/Views/Shared/parts/UMFview.ascx
    

    place the ~/Views/ before your code

提交回复
热议问题