连接视图的问题 [英] problem with connecting a view

查看:69
本文介绍了连接视图的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个名为Form.cshtml的新视图.我使用contenuUrl:"/Home/Form"来连接此视图.当它显示Form视图时,在顶部我不想显示"Home"和"About"

I have created new view called Form.cshtml.I used contenuUrl:"/Home/Form" to connect this view.when it is displaying the Form view,In the top i dont want to display "Home" and "About" on the top.how can i do this?

推荐答案

在顶部我不想在顶部显示主页"和关于"
隐藏它们,将它们从基础视图中删除!
例如,如果是MVC3,请检查_Layout.cshtml文件.
In the top i dont want to display "Home" and "About" on the top
Hide them, remove them from the base view!
For example, if MVC3, check _Layout.cshtml file.


这篇关于连接视图的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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