I have a hidden field and I change the value just before submitting the form using Javascript. But in server side it is null or empty. Request.Form["hidAction"] is empty.
<script type="text/javascript" language="javascript">
function DoChange()
{
document.getElementsByName('hidAction').value = "filter";
alert(document.getElementsByName('hidAction').value);
document.forms[0].submit();
}
</script>
<body>
<form id="form1" runat="server">
<div>
<select name="lst" onchange="DoChange();">
<option value="1">1</option>
<option value="2">2</option>
</select>
</div>
<input type="hidden" id="hidActionID" name="hidAction" value="tt" />
</form>
</body>
</html>