how to get text box value in page init?

Posted by Amit on Stack Overflow See other posts from Stack Overflow or by Amit
Published on 2010-06-02T09:32:54Z Indexed on 2010/06/02 9:44 UTC
Read the original article Hit count: 219

Filed under:
|

Hi

I am using asp.net 2.0

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

string t = Request.Form["currentMode"].ToString();

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

Any idea?asp.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET