1,105,380 Community Members

HTML 5 Master Page

Member Avatar
BUGSIE91
Newbie Poster
12 posts since Oct 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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??

Member Avatar
AleMonteiro
Master Poster
758 posts since Aug 2010
Reputation Points: 115 [?]
Q&As Helped to Solve: 143 [?]
Skill Endorsements: 29 [?]
 
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.

Member Avatar
JorgeM
IT Addict
6,413 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 963 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
0
 

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.

Member Avatar
java.beansbureo
Newbie Poster
3 posts since Jan 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

@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.

Member Avatar
AleMonteiro
Master Poster
758 posts since Aug 2010
Reputation Points: 115 [?]
Q&As Helped to Solve: 143 [?]
Skill Endorsements: 29 [?]
 
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

Member Avatar
JorgeM
IT Addict
6,413 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 963 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
0
 

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

Member Avatar
java.beansbureo
Newbie Poster
3 posts since Jan 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

@AlwMonteiro & JorgeM

Thanks!

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article