Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
How many master pages we can add in a asp.net project.


Thanks
Posted

Many. There is no limit. It's depends on the way you design your pages. You can also have nested master pages.

Look here:
MSDN: ASP.NET Master Pages[^]
ASPNET: ASP.NET Master Pages Tutorials[^]
 
Share this answer
 
Comments
P.Salini 12-May-12 2:14am    
My 5!
Sandeep Mewara 12-May-12 5:35am    
Thanks Salini.
Uday P.Singh 12-May-12 2:41am    
good answer 5!
Sandeep Mewara 12-May-12 5:36am    
Thanks Uday.
VJ Reddy 12-May-12 23:21pm    
My 5!
 
Share this answer
 
Comments
VJ Reddy 12-May-12 23:21pm    
My 5!
sravani.v 13-May-12 23:33pm    
Thank youuuu..
you can have as mnay number of master pages as you need in your project, but only one for single content page ,
but you can change it at runtime depending on some condition, this is generally done in page_init() by writing
C#
this.MasterPageFile="master page path".
 
Share this answer
 
v2
Comments
VJ Reddy 12-May-12 23:21pm    
My 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900