关于母版页和内容页 [英] Regarding master pages and content pages

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

问题描述

大家好,

我想开发一个包含母版页的网站.在该网站中,我将具有指向首页,关于我们,联系我们的链接.因此,当我单击首页"时,home.aspx的内容应显示在母版页的contentplaceholder上.应该与About About和Contact Us相同.因此,请帮忙.我想逐步解决此问题.希望大家尽快为我提供帮助.等待您的回复.在此先感谢您.


问候

Somashekhar

解决方案

请参考:

本文是有关理解母版页和在ASP.NET中实现母版页的初学者教程: ^ ]

创建和使用母版页 [在Visual Web Developer中创建和使用ASP.NET母版页 [母版页和站点导航 [ MSDN:ASP.NET母版页 [ ASPNET:ASP.NET母版页教程 [ ASP.NET 2.0主页 [将ASP.NET UpdatePanel控件与母版页一起使用 [ href ="http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&sqi=2&ved=0CFIQtwIwAg&url = http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsBoIrmajJbU& ei = Kgq-T8jND8-qrAfXi5HSDQ& usg = AFQjCNE_0bXsuJ5ZSxibk_ign4b8n5rc8Z&#"B" [b] a>]




这很简单.只是在谷歌搜索.如何使用母版页进入asp.net.您将轻松获得答案.

谢谢,
Viprat



您想要的东西比您想的要容易.使用ContentPlaceHolder创建母版页后,将自动创建后续WebForm并带有将在母版页中替换的相关内容.

观看此详细指南:
http://www. asp.net/web-forms/tutorials/master-pages/creating-a-site-wide-layout-using-master-pages-cs [ 解决方案

Please refer:

This article is a beginner''s tutorial on understanding Master pages and implementing master pages in ASP.NET:
Beginner''s Tutorial on Master Pages in ASP.NET[^]

Creating and using master pages[^]

Creating and Using ASP.NET Master Pages in Visual Web Developer[^]
Master Pages and Site Navigation[^]

MSDN: ASP.NET Master Pages[^]
ASPNET: ASP.NET Master Pages Tutorials[^]
ASP.NET 2.0 Master Pages[^]
Using the ASP.NET UpdatePanel Control with Master Pages[^]

More references:
Video: Creating Master Page[^]


Hi,

This is the simple thing. Just search in google. how to use master page into asp.net. you will get your answer easily.

Thanks,
Viprat


Hi,
what you ask for, it''s easier than you''re thinking. Once you have created a MasterPage with the ContentPlaceHolder, subsequent WebForm are automatically created with the related content that will be replaced in the masterpage.

Watch this detailed guide:
http://www.asp.net/web-forms/tutorials/master-pages/creating-a-site-wide-layout-using-master-pages-cs[^]


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

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