嵌套母版页 [英] Nested Masterpages

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

问题描述

你好,

我对在asp.net Web应用程序中嵌套母版页有疑问.

I have a question about nesting masterpages in an asp.net webapplication.

我的问题是我应该创建的应用程序有几个网页,它们共享90%的相同控件,但页面下半部分中只有一个部分是不同的.我想知道建立这样一个网站的最佳实践是什么.应该 我制作一个母版页

My problem is that the application i am supposed to create has a few webpages that share 90% of the same controls, only one section in the lower half of the pages are different. I was wondering what the best practice is for building such a website. Should i make a masterpage  that contains the uppper hald of the pages (which is similar in each page), and derive from that for the specific pages?

推荐答案

控件的内容.如果内容相同,则也可以在控件中使用该控件.主页.
It depends upon the content of the controls. If you have same contents then you can have that control too in the  master page.


这篇关于嵌套母版页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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