We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,459 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

HTML 5 Master Page

Hello... I stumbled upon a template created using html 5 and css3 and was wondering if it could be used as a master page... I know the normal method where we will have a css file and one index.html file whose code should be copied under ,aster page.. the css 3 template i downloaded has miltiple html files. is there any specific method for adding this as a master page??

4
Contributors
6
Replies
9 Hours
Discussion Span
4 Months Ago
Last Updated
10
Views
BUGSIE91
Newbie Poster
12 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

A master page have a single a html file (.aspx). But the master page can hold any number of user defined controls or you can have multiple nested master pages.
It really depends on what you are trying to do.

AleMonteiro
Master Poster
752 posts since Aug 2010
Reputation Points: 129
Solved Threads: 140
Skill Endorsements: 25

I stumbled upon a template created using html 5 and css3 and was wondering if it could be used as a master page

Of course... An aspx master page is not dependent on any specific HTML/CSS version. Open your master page and modify the <DOCYTPE> declaration as well as any other specific HTML5 element that you need to include, and also include your common external stylesheets as well.

Use/Create addtional content areas as needed so that the other aspx pages that will use this master page as their template.

JorgeM
Industrious Poster
4,164 posts since Dec 2011
Reputation Points: 297
Solved Threads: 567
Skill Endorsements: 119

@JorgeM
So for asp.net MVC4 we can use any page for a master page as long as it's named correctly? Or are you saying that we take the default master page and add additional content areas then add our own 'master pages' to those content area's.

I'm new to asp.net and the concept of a master page is a bit confusing - it seems much like a CSS file - but it's not.

java.beansbureo
Newbie Poster
3 posts since Jan 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Master pages has nothing to do with CSS nor it behave like such.

Please read the folling pages to understand how a master page works:

http://www.codeproject.com/Articles/333650/Beginner-s-Tutorial-on-Master-Pages-in-ASP-NET

http://msdn.microsoft.com/en-us/library/wtxbf3hh(v=vs.100).aspx

AleMonteiro
Master Poster
752 posts since Aug 2010
Reputation Points: 129
Solved Threads: 140
Skill Endorsements: 25

@java.beansbureo- yes, master pages can be nested within other master pages.

JorgeM
Industrious Poster
4,164 posts since Dec 2011
Reputation Points: 297
Solved Threads: 567
Skill Endorsements: 119

@AlwMonteiro & JorgeM

Thanks!

java.beansbureo
Newbie Poster
3 posts since Jan 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.3024 seconds using 2.65MB