Referencing UserControl on a master page when using a Base class for all pages

SMH

Joined
May 7, 2009
Messages
1
Reaction score
0
Hi All,

I'm rather stuck on this one!

Setup is as follows:

- MasterPage contains a UserControl, which has some public properties.
- I want to set the properties from my base class, which all my pages derive from

To complicate matters further, I will need to use multiple master pages for the site (braqnding depends on the logged in user).

I started off using Page.Master.FindControl("NameOfUserControl") but then what type is the control? My baseclass page, and indeed the pages are not aware of the CustomControl on the page or its type.

Any advice much appreciated!

Tar,
Simon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top