<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Master Pages, Themes and Navigation Controls</title><link>http://forums.asp.net/139.aspx</link><description>Discussions of MasterPages, Themes, and other page-related features. &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=164&amp;amp;c=30" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Properties in master pages</title><link>http://forums.asp.net/thread/1146756.aspx</link><pubDate>Mon, 19 Dec 2005 23:29:29 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1146756</guid><dc:creator>JoeReynolds</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1146756.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1146756</wfw:commentRss><description>&lt;p&gt;No compilation errors. You will note I said &amp;lt;%=Master.MyVariable%&amp;gt; works on the aspx page. &lt;/p&gt;
&lt;p&gt;I have fould it is a loading sequence issue.&lt;/p&gt;
&lt;p&gt;If I use Private Sub PreInit rather than Load then I can access the Master variables via Master.MyVariable in the code file.&lt;/p&gt;
&lt;p&gt;Is there any documentation where all of this is spelled out?&lt;/p&gt;
&lt;p&gt;Is it possible to use a BasePage with a Master page? BasePage properties can be accessed directly.&lt;/p&gt;</description></item><item><title>Re: Properties in master pages</title><link>http://forums.asp.net/thread/1146749.aspx</link><pubDate>Mon, 19 Dec 2005 23:19:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1146749</guid><dc:creator>taniam</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1146749.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1146749</wfw:commentRss><description>When you say that having the Master.MyVariable in the codebehind produces nothing, do you mean that there are no compilation&amp;nbsp;errros, but nothing is output?&amp;nbsp;</description></item><item><title>Re: Properties in master pages</title><link>http://forums.asp.net/thread/1145678.aspx</link><pubDate>Sun, 18 Dec 2005 06:04:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1145678</guid><dc:creator>JoeReynolds</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1145678.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1145678</wfw:commentRss><description>&lt;p&gt;I have the master type directive on a content page but cannot reference master page public items in the codebehind.&lt;/p&gt;
&lt;p&gt;&amp;lt;%=Master.MyVariable%&amp;gt; works from the design view but&lt;/p&gt;
&lt;p&gt;response.write(Master.MyVariable) in the codebehind&lt;/p&gt;
&lt;p&gt;produces nothing.&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;</description></item><item><title>Re: Properties in master pages</title><link>http://forums.asp.net/thread/924528.aspx</link><pubDate>Fri, 13 May 2005 00:49:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:924528</guid><dc:creator>jliberty</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/924528.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=924528</wfw:commentRss><description>You are terrific; that did it, thanks!</description></item><item><title>Re: Properties in master pages</title><link>http://forums.asp.net/thread/924130.aspx</link><pubDate>Thu, 12 May 2005 18:00:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:924130</guid><dc:creator>BrockAllen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/924130.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=924130</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;table width="85%"&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;jliberty wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td width="100%" valign="top" class="txt4"&gt;
&lt;P&gt;In previous CTP's it was possible to declare a public property in a master page, and then access that property using Master.&amp;lt;propertyname&amp;gt; from&amp;nbsp;the content page. IN fact, the documentation of MasterPage Class says:&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Garamond color=#000080&gt;&amp;nbsp;All public properties in the master page class are available to the content page's base class through the &lt;B&gt;Master&lt;/B&gt; property, using the notation &lt;B&gt;Master&lt;/B&gt;.&lt;I&gt;PropertyName&lt;/I&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;This no longer seems to work.&amp;nbsp;Is this a bug, or am I doing something wrong?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;You need to add either one of these to the page:&lt;/P&gt;
&lt;P&gt;&amp;lt;%@ MasterType VirtualPath="default.master" %&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;%@ MasterType TypeName="YourMasterBaseClass" %&amp;gt;&lt;/P&gt;
&lt;P&gt;-Brock&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Properties in master pages</title><link>http://forums.asp.net/thread/924072.aspx</link><pubDate>Thu, 12 May 2005 17:20:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:924072</guid><dc:creator>jliberty</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/924072.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=924072</wfw:commentRss><description>&lt;P&gt;In previous CTP's it was possible to declare a public property in a master page, and then access that property using Master.&amp;lt;propertyname&amp;gt; from&amp;nbsp;the content page. IN fact, the documentation of MasterPage Class says:&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Garamond color=#000080&gt;&amp;nbsp;All public properties in the master page class are available to the content page's base class through the &lt;B&gt;Master&lt;/B&gt; property, using the notation &lt;B&gt;Master&lt;/B&gt;.&lt;I&gt;PropertyName&lt;/I&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;This no longer seems to work.&amp;nbsp;Is this a bug, or am I doing something wrong?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&lt;A href="mailto:jliberty@libertyassocaites.com"&gt;jliberty@libertyassocaites.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>