我们如何创建包含从不同页面呈现的不同部分的母版页。 [英] How can we create a master page with different sections rendered from different pages.

查看:85
本文介绍了我们如何创建包含从不同页面呈现的不同部分的母版页。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想知道是否可以创建一个MasterPage,它的不同部分从不同的页面呈现。



假设我们有Header部分,Body部分和页脚部分,我想要做的是用不同的aspx页面内容填充它们。



所以当我查看页面时(在浏览器中,其他部分会自动填充。



现在这个场景要求母版页在其他部分获取所需的页面,而不是正文中的一个部分。用户请求。

因此,Signalr会派上用场,因为它会创建一个连续的连接。



先谢谢。

Hi,
I wanted to know if its possible to create a MasterPage which has its different sections rendered from different pages.

Say we have Header section, Body section and footer section, what I want to do is fill them up with different aspx page content.

So when I view the page (body) in browser the other sections are filled up automatically.

Now this scenario requires that the masterpage get the required pages in other sections other than one in the body which is requested by the user.
So will Signalr come in handy as it creates a continuous connection.

Thanks in Advance.

推荐答案

您可以使用 UserControls 。将它们添加到母版页
You can use UserControls. Add them to the Master Page.


这篇关于我们如何创建包含从不同页面呈现的不同部分的母版页。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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