467,075 Members | 954 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,075 developers. It's quick & easy.

How to access content page from inside master page

Is it possible to access the classname (or type) of the content page
from inside the master page? I'm trying to do some security model in
the master page, without having to add to each individual page in the
solution.

Thanks in advance.

Sep 15 '06 #1
  • viewed: 1279
Share:
2 Replies
If you pull the current Page from the master page, it will be the page you
are hitting. You can then get anything that the Page object contains.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
<Si*******@gmail.comwrote in message
news:11********************@m73g2000cwd.googlegrou ps.com...
Is it possible to access the classname (or type) of the content page
from inside the master page? I'm trying to do some security model in
the master page, without having to add to each individual page in the
solution.

Thanks in advance.

Sep 15 '06 #2
Fantastic. Thanks! I see you can do ContentPlaceHolder.Page to do
this!
Cowboy (Gregory A. Beamer) wrote:
If you pull the current Page from the master page, it will be the page you
are hitting. You can then get anything that the Page object contains.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
<Si*******@gmail.comwrote in message
news:11********************@m73g2000cwd.googlegrou ps.com...
Is it possible to access the classname (or type) of the content page
from inside the master page? I'm trying to do some security model in
the master page, without having to add to each individual page in the
solution.

Thanks in advance.
Sep 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by pushpadant@gmail.com | last post: by
4 posts views Thread by Boris Yeltsin | last post: by
3 posts views Thread by vikramp | last post: by
6 posts views Thread by =?Utf-8?B?SmF5IFBvbmR5?= | last post: by
3 posts views Thread by eselk2003@gmail.com | last post: by
2 posts views Thread by Gaspar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.