I'm not really sure if I follow you correctly but if you'd like to set a server-side property from
JavaScript
, then a
HiddenField
solution should work. For example, you can have a
C#
property like this:
public string MyServerProperty
{
get{ return HiddenField1.Value;}
set{ HiddenField1.Value = value;}
}
Then you can set the value of the
HiddenField
in your
JavaScript
like this:
document.getElementById('<%=HiddenField1.ClientID%>').value = 'set whatever value here';