How to get HiddenField control in Masterpage and set it's value?
<p>I have a <code>MasterPage</code> that contains a hidden field control. I want to get the current value of the hidden field and set the value of it from pages that use the <code>MasterPage</code>. </p>

<p>I have the following code so far: (in one of the pages)</p>

<pre><code>   //Get the textbox and set it's value
   TextBox txt1 = new TextBox();
                txt1 = (TextBox)this.Master.FindControl("txtHiddenField");
                txt1 .Text = "true";
</code></pre>

<p>The above code does not seem to work. What code would I need to get the hidden field control and set it's value? (and get it's value)</p>
