Best way to set master page properties in content page in asp.net?
<p>There are different ways to set the title for content pages from Master page </p>

<ol>
<li>by findcontrol</li>
<li>by creating property in master page and setting the value in content page</li>
</ol>

<p>As both method requires an object creation of master page which will be little heavy<br>
<code>myMasterPage myMaster = (myMasterPage)this.Master;</code></p>

<p>so I have tried it by creating a class and it worked -</p>

<pre><code>public class clsmaster
{
    public static clsmaster objmaster = new clsmaster();
    public strtitle {get;set;}
}
</code></pre>

<p>Now I just need to access this static object and set the property in the content page and in the master page I just need the controls to take the value from this class (clsmaster).</p>

<p>I would like to know which one is the better approach and why with description please?</p>
