简体   繁体   English

主页中的布局模板

[英]Layout template in master page

So this is my first post. 这是我的第一篇文章。 I guess, this is the right place for me to learn some new things in ASP.net. 我想,这是我在ASP.net中学习一些新东西的正确地方。 Well, I just started creating a system using Asp, and just to ask ask anyone here, how to apply the downloaded layout template into my master page? 好吧,我刚刚开始使用Asp创建一个系统,只是想问问这里的任何人,如何将下载的布局模板应用到我的母版页中? Looking forward to any feedbacks. 期待任何反馈。 Have a nice day! 祝你今天愉快!

Implementing a layout in to your ASP.NET website is a matter of breaking it up in parts like header, footer, main content etc. The header and footer parts are good candidates to go into your master page, but the main content will be different per page, so that belongs into the pages itself. 在ASP.NET网站中实现布局是将其拆分为诸如页眉,页脚,主要内容等部分的问题。页眉和页脚部分是进入母版页的不错的选择,但是主要内容会有所不同每页,因此属于页面本身。

Here you have a good read about site wide layouts using masterpages: 在这里,您可以很好地了解使用母版页进行站点范围内的布局:

http://www.asp.net/web-forms/tutorials/master-pages/creating-a-site-wide-layout-using-master-pages-cs http://www.asp.net/web-forms/tutorials/master-pages/creating-a-site-wide-layout-using-master-pages-cs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM