As I noted in an earlier blog post, in May the first of my Master Pages tutorials were published on www.asp.net. Two new master page tutorials were put online today:
- URLs in Master Pages [VB | C#] - one challenge with master pages is that the master page and linked resources - image files, hyperlinks, stylesheet files, and so on - may exist in different folders, thereby breaking relative URLs. This tutorial includes tips on how to declaratively and programmatically overcome this challenge.
- Control ID Naming in Content Pages [VB | C#] - both master pages and ContentPlaceHolder controls introduce a new naming container, which adds additional text to the rendered HTML elements' ids. This introduces challenges when referencing the controls through client-side script. It also complicates programmatically referencing the controls in the server-side code-behind class. Read this tutorial for workarounds and remedies to these issues.
There will be a total of 10 tutorials. The next batch looks at interaction between content and master pages.
Like my past tutorials, these tutorials are all available in C# and VB versions, include a complete working source code download, and are available to download as PDF, as well.
Enjoy! - http://asp.net/learn/master-pages/