How to access master page control in child .aspx page (in javascript)
<p>In my masterpage.cs i am assigning a value to a hidden field (<code>hfSession="abc";</code>)</p>

<p>In my content page (default.aspx) i need to access this value in my javascript:</p>

<pre><code>&lt;script type="text/javascript" language="javascript"&gt;
    function(sender, e) 
    {   
        var Sessioninfo= $get('&lt;%= ((Hiddenfield)this.Master.FindControl("ct100_hfSession")).ClientID %&gt;');
&lt;/script&gt; 
</code></pre>

<p>but here i get an error :</p>

<blockquote>
  <p>object reference not set to an  instance of an object</p>
</blockquote>
