如何在mvc中调用ascx页面到razor [英] How to call ascx page to razor in mvc

查看:82
本文介绍了如何在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.


这篇关于如何在mvc中调用ascx页面到razor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆