how to get text box value in page init?
<p>I am using asp.net 2.0</p>

<p>I set a hidden text box from javascript and on postback, i want to check the value stored on the text box in page init event. Here is what i tried</p>

<pre><code>string t = Request.Form["currentMode"].ToString();
</code></pre>

<p>but i get an error saying " Object reference not set to an instance of an object."</p>

<p>Any idea?asp.</p>
