try accessing it from the form directly:
<input type="hidden" id="hdnResultValue" name="hdnResultValue" value="" />
String test = Request.Form["hdnResultValue"];
UPDATE: Tested Version:
Page1.aspx:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" >
function btnClick() {
document.getElementById("hdnHidden").value = "test";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<input type="hidden" id="hdnHidden" name="myHidden" />
<button type="button" id="btnButton" name="myButton" onclick="btnClick();" >btnClick</button>
<button type="submit">submit</button>
</form>
</body>
</html>
Page1.aspx.cs:
using System;
namespace WebTests
{
public partial class Page1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string test = Request.Form["myHidden"];
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
string test = Request.Form["myHidden"];
}
}
}
The page has two buttons. "btnClick" runs the javascript that changes the hidden fields value. "submit" submits the form containing the hidden field.
In both page load methods the value of "string test" is "test"
Take a look at mu code, compare it to yours and try to see whats different, i.e. is hdnResultValue within the form being submitted?