如何在mvc中调用ascx页面到razor
问题描述:
Iam有一个用户控件,我有一个菜单内容,我想要添加这个内容
我的_layout.cshtml。
可以帮我一个
thanxs
Iam having a usercontrol in that i have a menu content this content i want add in
my _layout.cshtml .
can an one help me
thanxs
答
MVC Razor中没有服务器控件。改为使用部分视图。
No server controls in MVC Razor. Use a Partial View instead.