Why can't I access the value of a hidden input field from my ASP.NET code-behind?

ganesh177

New Member
From my page's code-behind I want to access the value of this hidden field. The value is set properly. I confirmed by checking its value.\[code\]<div class="hiddenValues"> <input id="HiddenReportId" type="hidden" /></div> \[/code\]From my code behind, I'm using the following to access the above input\[code\]string id = Request.Form["HiddenReportId"];\[/code\]When I run the application this line throws a null exception. Any suggestions ? Thanks!
 
Top