I have a function that I\'d like to run when the page loads, so either in document.ready or pageLoad.
Using jquery, I\'ll trigger the function using its class name
You can do this way :
Declare public member into your C# class on code behind
public string mystring;
Initiate it in Init or Load Event And write that on your js function
var exp = '<%=mystring %>';
It should work for string. For Dictionnary, you may try to do Ajax