<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DotBert &#187; title</title>
	<atom:link href="http://dotbert.loedeman.nl/category/title/feed" rel="self" type="application/rss+xml" />
	<link>http://dotbert.loedeman.nl</link>
	<description>.NET thoughts by Bert Loedeman</description>
	<lastBuildDate>Thu, 18 Mar 2010 12:49:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Set MasterPage (.master) title from a web form (.aspx)</title>
		<link>http://dotbert.loedeman.nl/set-masterpage-master-title-from-a-web-form-aspx</link>
		<comments>http://dotbert.loedeman.nl/set-masterpage-master-title-from-a-web-form-aspx#comments</comments>
		<pubDate>Fri, 22 Feb 2008 09:12:00 +0000</pubDate>
		<dc:creator>Bert Loedeman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[aspx]]></category>
		<category><![CDATA[masterpage]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[web form]]></category>

		<guid isPermaLink="false">http://www.loedeman.net/wordpress/?p=15</guid>
		<description><![CDATA[Lots of people complain about not being able to change the master page&#8217;s title using ASP.NET 2.0 and up. A commonly seen tutorial is to use the following piece of code:

((HtmlTitle) Page.Master.FindControl(&#34;lblTitle&#34;)).Text =
    &#34;Set some kind of title&#34;;

In most of the cases you need to change the master page&#8217;s title, you do not have to bother [...]]]></description>
			<content:encoded><![CDATA[<p>Lots of people complain about not being able to change the master page&#8217;s title using ASP.NET 2.0 and up. A commonly seen tutorial is to use the following piece of code:</p>
<pre class="brush: csharp;">
((HtmlTitle) Page.Master.FindControl(&quot;lblTitle&quot;)).Text =
    &quot;Set some kind of title&quot;;
</pre>
<p>In most of the cases you need to change the master page&#8217;s title, you do not have to bother about this. Just use the correct page stadium and set the page&#8217;s title. The only page event to be able to do this is Page_PreInit (since master page and content page are still separate &#8216;pages&#8217; in this stadium). The following will work (if you have AutoEventWireup enabled <img src='http://dotbert.loedeman.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Set MasterPage (.master) title from a web form (.aspx)" />  ):</p>
<pre class="brush: csharp;">
protected void Page_PreInit(object sender, EventArgs e)
{
    Title = &quot;Set some kind of title&quot;;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://dotbert.loedeman.nl/set-masterpage-master-title-from-a-web-form-aspx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
