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.
Init is the page life cycle where everything is initialized. You can’t thrust that anything is availble. In order to do that you have to use the Page_Load event…