Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I am a beginner to ASP.net.What is a MasterPage in ASP.net and What is the use of it?Can any one explain with a
sample example.Thanks in Advance.
Posted
Comments
Anuja Pawar Indore 23-Aug-12 8:59am    
Google is perfect ans for this.

Master pages allow you to create a consistent look and behavior for all the pages (or group of pages) in your web application.
It is kind of template for other pages, with shared layout and functionality. The master page defines placeholders for the content, which can be overridden by content pages. The output result is a combination of the master page and the content page.

Have look at following articles for more information:

Beginner's Tutorial on Master Pages in ASP.NET[^]
http://www.asp.net/web-forms/tutorials/master-pages[^]
http://www.w3schools.com/aspnet/aspnet_masterpages.asp[^]
http://www.dreamincode.net/forums/topic/33293-introduction-to-master-pages-in-aspnet/[^]
http://www.dotnetfunda.com/forums/thread4196-a-simple-example-of-master-page.aspx[^]
http://weblogs.asp.net/scottgu/archive/2006/01/17/Data-Tutorial-_2300_2_3A00_-Building-our-Master-Page-and-Site-Navigation-Structure.aspx[^]
ASP.NET 2.0 Master Pages[^]
 
Share this answer
 
v2
Comments
Prashant Bangaluru 23-Aug-12 9:04am    
Sorry I stopped searching on google afterI joined to codeproject but definitely I try first in google in future.Thanks for your answer,
Manas Bhardwaj 23-Aug-12 9:18am    
Good +5!
Vani Kulkarni 23-Aug-12 9:37am    
Thanks Manas :)
Is Google [^]broken at your place. I found 4,050,000 results in .24 seconds :)

here are few links which I liked:

MSDN, always first choice : http://msdn.microsoft.com/en-us/library/wtxbf3hh(v=vs.100).aspx[^]

http://www.w3schools.com/aspnet/aspnet_masterpages.asp[^]

http://www.youtube.com/watch?v=epaavQsb950[^]
 
Share this answer
 
Comments
Prashant Bangaluru 23-Aug-12 9:04am    
Sorry I stopped searching on google afterI joined to codeproject but definitely I try first in google in future.Thanks for your answer,
ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application. You can then create individual content pages that contain the content you want to display. When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content from the content page.
 
Share this answer
 

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