Master Page Question

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

....have a master page with a contentplaceholder.

From code in the master page itself, how can I determine whether the content
page is using the placeholder's default master content or using the content
page's content?

Thanks

Jeff
 
Jeff,

I tested this in the PreRender event of the Master page,

Me.ContentTemplates.Count > 0

If I used the default master content, Count = 0. If I used the content
page's content, Count = 1.


Hope this helps,

Steve
 
Back
Top