Master Pages In Asp.net

3,611 views

Published on

This Presentation Covers Master pages in Asp.net

Published in: Education, Technology
0 Comments
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,611
On SlideShare
0
From Embeds
0
Number of Embeds
175
Actions
Shares
0
Downloads
0
Comments
0
Likes
6
Embeds 0
No embeds

No notes for slide

Master Pages In Asp.net

  1. 1. Swapnil D Patil.<br />Junior Solution Developer <br />Parallel Minds Technology Solutions Pvt. Ltd. <br />www.parallelminds.biz<br />(o) + 91-20-65000209 <br />http://Dotnetminders.blogspot.com/<br />Mail: coe@parallelminds.biz<br />|<br />
  2. 2. Master Page in asp.net<br />
  3. 3. Master Page in asp.net<br />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.<br />The master page is identified by a special @ Master directive that replaces the @ Page directive that is used for ordinary .aspx pages. The directive looks like the following.< %@ Master Language="C#" %><br />The @ Master directive can contain most of the same directives that a @ Control directive can contain. It also contains all of the top-level HTML elements for a page, such as html, head, and form.<br />In addition to static text and controls that will appear on all pages, the master page also includes one or more ContentPlaceHolder controls.<br />
  4. 4. Advantages of Master Page<br />They allow you to centralize the common functionality of your pages so that you can make updates in just one place. <br />They make it easy to create one set of controls and code and apply the results to a set of pages. For example, you can use controls on the master page to create a menu that applies to all pages. <br />They give you fine-grained control over the layout of the final page by allowing you to control how the placeholder controls are rendered. <br />They provide an object model that allows you to customize the master page from individual content pages.<br />
  5. 5. VS -> Create New Web Site -><br />
  6. 6. Source View of Master Page<br />
  7. 7. Master Page in Asp.netVS -> Sol. Exp. -> Add -><br />
  8. 8. Master Page in Asp.netselect master page<br />
  9. 9. Master Page in Asp.netselect master page<br />
  10. 10. Master Page in Asp.netadd web form page<br />
  11. 11. Master Page in Asp.netadd web form page<br />
  12. 12. Master Page in Asp.netselect master page<br />
  13. 13. Thank You!<br />

×