Scott on Writing

Musings on technical writing...

Final Two Master Page Tutorials Published

The final two tutorials (#9 and #10) of my Master Pages Tutorial series are now available on www.asp.net.  These tutorials explore two advanced master page scenarios:

  • Specifying the Master Page Programmatically [VB | C#] - in most cases a content page's master page is specified statically through the MasterPageFile attribute in the @Page directive.  However, it is possible to dynamically set a content page's master page, as this tutorial shows.
  • Nested Master Pages [VB | C#] - much like how a content pages can bind to a master page, it is possible for master pages to bind to other master pages. Such nested master pages are quite useful in scenarios where there is an overarching look and feel to a site, but various portions of the site require a more customized and unique template. With nested master pages you can define the global common layout in a top-level master page and then use child master pages to create more specialized layouts for particular sections of the site.

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/

 

posted on Thursday, July 31, 2008 4:50 PM

Feedback

# re: Final Two Master Page Tutorials Published 8/4/2008 5:25 AM maryam

thank U for the tutorials!

---------------------------------------------
Take the first step in faith, You don't have to see the whole staircase!
JUST TAKE THE FIRST STEP!

# re: Final Two Master Page Tutorials Published 8/16/2008 8:37 PM nicky

Thank you for the tutorials.
It's very helpful for me.

But I have some problem to execute the final Master Page tutorial(ASPNET_MasterPages_Tutorial_10_CS).

DoublePrice button which is located in Site.master doesn't work.

I debuged it.
I figured out the problem that
PricesDoubled event which is located in BaseMasterPage class wasn't assigned by any object when I clicked DoublePrice button.

I've tried to fix it.
but it's very difficult for me.
I need your help.

have a nice day.
thank you.

# re: Final Two Master Page Tutorials Published 8/17/2008 11:16 AM Scott Mitchell

nicky, are you saying that you downloaded the tutorial code
(http://download.microsoft.com/download/d/6/6/d66ad554-afdd-409e-a5c3-201b77
4fbb31/ASPNET_MasterPages_Tutorial_10_CS.zip) and were unable to get the Double Prices button to work? Does it just not double the prices, or do you get an exception?

I just downloaded the code and it works fine for me.

# re: Final Two Master Page Tutorials Published 8/18/2008 4:26 AM nicky

Yes, I downloaded source code at the below link.

http://download.microsoft.com/download/d/6/6/d66ad554-afdd-409e-a5c3-201b774fbb31/ASPNET_MasterPages_Tutorial_10_CS.zip

please access ~/Admin/Products.aspx page on you browser and click the DoublePrice button.
It binds RecentProducts GridView(in Site.master) well, but It doesn’t bind ProductsGrid GridView(in Products.aspx).

I’ve tried to connect some event handler which bind ProductsGrid Gridview in Products.aspx Page to the PricesDoubled event(public event EventHandler PricesDoubled;) which is in the BaseMasterPage class.

I’m not good at writing english.
I hope you understand what I’m saying.

Anyway, thank you for a response and good tutorials.

Title:  
Name:  
Url:
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments   

My Links

Ads Via DevMavens

Archives

Post Categories

 

I am a Microsoft MVP for ASP.NET.
I am an ASPInsider.
<March 2010>
SMTWTFS
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910

Comment Stats

DayTotal% of Total
Sunday 2056.8%
Monday 42514.1%
Tuesday 51917.2%
Wednesday 55618.4%
Thursday 58019.2%
Friday 54718.1%
Saturday 1886.2%
Total 3020100.0%

Hour1Total% of Total
12:00 AM 782.6%
1:00 AM 812.7%
2:00 AM 682.3%
3:00 AM 822.7%
4:00 AM 692.3%
5:00 AM 1264.2%
6:00 AM 1193.9%
7:00 AM 1816.0%
8:00 AM 1926.4%
9:00 AM 1585.2%
10:00 AM 1886.2%
11:00 AM 1936.4%
12:00 PM 2016.7%
1:00 PM 1846.1%
2:00 PM 1695.6%
3:00 PM 1354.5%
4:00 PM 1153.8%
5:00 PM 1073.5%
6:00 PM 1013.3%
7:00 PM 1073.5%
8:00 PM 923.0%
9:00 PM 882.9%
10:00 PM 913.0%
11:00 PM 953.1%
Total 3020100.0%

Comments by Blog Entry Date/Time

Day Entry MadeAvg.Total
Sunday 5.00160
Monday 4.80384
Tuesday 4.04477
Wednesday 7.39680
Thursday 6.26676
Friday 5.07466
Saturday 4.78177
Total 5.403020

Hour1 Entry MadeAvg.Total
12:00 AM 5.2937
1:00 AM 1.002
5:00 AM 0.000
7:00 AM 3.8550
8:00 AM 3.72134
9:00 AM 6.06297
10:00 AM 5.63276
11:00 AM 4.22194
12:00 PM 6.16351
1:00 PM 3.09133
2:00 PM 4.89230
3:00 PM 7.67322
4:00 PM 4.00108
5:00 PM 6.07170
6:00 PM 4.64116
7:00 PM 8.95188
8:00 PM 8.63164
9:00 PM 5.00115
10:00 PM 6.31101
11:00 PM 4.5732
Total 5.403020

Learn More About Comment Stats
1 - All times GMT -8...


Blog Stats

Favorite Web Sites

My Books

My MSDN Articles