ciao a tutti,
devo fare in modo che quando accedo ad una pagina mi venga caricato nel c# allegato il valore settato da javascript.la mia soluzione non funziona perchè mi restituisce il vecchio valore.
come si puo fare? Grazie a tutti.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Untitled Page</title>


<script language="javascript" type="text/javascript" >
function dati()
{
document.getElementById('aaa').value=navigator.pla tform;
}
</script>


</head>
<body onload="dati();">

<form id="form1" runat="server">
<div>
<asp:HiddenField id="aaa" runat="server" Value="aaa"/>
</div>
</form>

</body>
</html>



il file c# collegato a come pageLoad

protected void Page_Load(object sender, EventArgs e)
{ Response.Write(aaa.Value);}