Language

How to create and use ASP.NET master pages and content pages to create a consistent layout in Web Forms applications.

  1. Creating a Site-Wide Layout Using Master Pages (C#)

    By Scott Mitchell|

    This tutorial will show master page basics. Namely, what are master pages, how does one create a master page, what are content place holders, how does one create an ASP.NET page that uses a master...

  2. Multiple ContentPlaceHolders and Default Content (C#)

    By Scott Mitchell|

    Examines how to add multiple content place holders to a master page as well as how to specify default content in the content place holders.

  3. Specifying the Title, Meta Tags, and Other HTML Headers in the Master Page (C#)

    By Scott Mitchell|

    Looks at different techniques for defining assorted <head> elements in the Master Page from the content page.

  4. URLs in Master Pages (C#)

    By Scott Mitchell|

    Addresses how URLs in the master page can break due to the master page file being in a different relative directory than the content page. Looks at rebasing URLs via ~ in the declarative syntax and...

  5. Control ID Naming in Content Pages (C#)

    By Scott Mitchell|

    Illustrates how ContentPlaceHolder controls serve as a naming container and therefore make programmatically working with a control difficult (via FindConrol). Looks at this issue and workarounds. A...

  6. Interacting with the Master Page from the Content Page (C#)

    By Scott Mitchell|

    Examines how to call methods, set properties, etc. of the Master Page from code in the Content Page.

  7. Interacting with the Content Page from the Master Page (C#)

    By Scott Mitchell|

    Examines how to call methods, set properties, etc. of the Content Page from code in the Master Page.

  8. Master Pages and ASP.NET AJAX (C#)

    By Scott Mitchell|

    Discusses options for using ASP.NET AJAX and master pages. Looks at using the ScriptManagerProxy class; discusses how the various JS files are loaded depending on whether the ScriptManager is used...

  9. Specifying the Master Page Programmatically (C#)

    By Scott Mitchell|

    Looks at setting the content page's master page programmatically via the PreInit event handler.

  10. Nested Master Pages (C#)

    By Scott Mitchell|

    Shows how to nest one master page within another.

  11. Creating a Site-Wide Layout Using Master Pages (VB)

    By Scott Mitchell|

    This tutorial will show master page basics. Namely, what are master pages, how does one create a master page, what are content place holders, how does one create an ASP.NET page that uses a master...

  12. Multiple ContentPlaceHolders and Default Content (VB)

    By Scott Mitchell|

    Examines how to add multiple content place holders to a master page as well as how to specify default content in the content place holders.

  13. Specifying the Title, Meta Tags, and Other HTML Headers in the Master Page (VB)

    By Scott Mitchell|

    Looks at different techniques for defining assorted <head> elements in the Master Page from the content page.

  14. URLs in Master Pages (VB)

    By Scott Mitchell|

    Addresses how URLs in the master page can break due to the master page file being in a different relative directory than the content page. Looks at rebasing URLs via ~ in the declarative syntax and...

  15. Control ID Naming in Content Pages (VB)

    By Scott Mitchell|

    Illustrates how ContentPlaceHolder controls serve as a naming container and therefore make programmatically working with a control difficult (via FindConrol). Looks at this issue and workarounds. A...

  16. Interacting with the Master Page from the Content Page (VB)

    By Scott Mitchell|

    Examines how to call methods, set properties, etc. of the Master Page from code in the Content Page.

  17. Interacting with the Content Page from the Master Page (VB)

    By Scott Mitchell|

    Examines how to call methods, set properties, etc. of the Content Page from code in the Master Page.

  18. Master Pages and ASP.NET AJAX (VB)

    By Scott Mitchell|

    Discusses options for using ASP.NET AJAX and master pages. Looks at using the ScriptManagerProxy class; discusses how the various JS files are loaded depending on whether the ScriptManager is used...

  19. Specifying the Master Page Programmatically (VB)

    By Scott Mitchell|

    Looks at setting the content page's master page programmatically via the PreInit event handler.

  20. Nested Master Pages (VB)

    By Scott Mitchell|

    Shows how to nest one master page within another.

ASP.NET Web Forms Books

Microsoft's Jon Galloway recommends these books for learning ASP.NET Web Forms:

Beginning ASP.NET 4.5: in C# and VB

Beginning ASP.NET 4.5: in C# and VB

by Imar Spaanjaars

Professional ASP.NET 4.5 in C# and VB

Professional ASP.NET 4.5 in C# and VB

by Jason N. Gaylord, Christian Wenz, Pranav Rastogi, Todd Miranda, Scott Hanselman

Pro ASP.NET 4 in C# 2010

Pro ASP.NET 4 in C# 2010

by Matthew MacDonald