View Single Post
  #4 (permalink)  
Old February 16th, 2006, 03:58 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

You declare the public property in the Code Behind for the Master Page. From my example, you can see I am exposing a property of type HtmlGenericControl (a <div> tag in my case).

However, you need to change the property definition to match your User Control type. In addition, you may need to import the namespace that your user control lives in.

The <%@ MasterType line should go in the Content page.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote