Is there a way to send javascript data to the server-side during post-back?
For example:
var jsVariableToPass = new Object();
jsVariableToPass ['key1'] = value1;
jsVariableToPass ['key2'] = value2;
jsVariableToPass ['key3'] = value3;
I want this data to be accessible as a Hashtable on the server side. What is the recommended approach for achieving this?
The common method I've come across involves using a hidden input field, but I find it somewhat unconventional. Are there any alternative methods to achieve this? If not, what would be the best way to deserialize and serialize this data?