Asp.net主页作为MVC中的layoyt [英] Asp.net master page as layoyt in MVC

查看:82
本文介绍了Asp.net主页作为MVC中的layoyt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用现有的asp.net母版页为razor cshtml设置布局?



我们的项目从WSP转换为MVC,我们需要使用现有的我们拥有的母版页,直到我们没有转换(重写代码为mvc)整个项目。



我尝试了什么:



我仍​​然在网上搜索任何有用的例子。

Is it possible to set a layout for razor cshtml with existing asp.net master page?

Our project converting from WSP to MVC and we need to use existing master page that we have until we not convert(rewrite code for mvc) whole project .

What I have tried:

I am still searching in internet to get any working example.

推荐答案

你只需重写你的网站,两者不兼容。如果你不想重写,那就坚持使用webforms。要回答你的下一个问题,你不能一次将它转换为MVC页面。
You're just going to have to rewrite your site, the two are not compatible. If you don't want to re-write then stick with webforms. To answer your next question, no you can't convert it to MVC a page at a time either.


这篇关于Asp.net主页作为MVC中的layoyt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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