If I want to insert a global reach array variable in javascript on the client side of the page during full-text postback, I can use:
this.Page.ClientScript.RegisterArrayDeclaration("WorkCalendar", "\"" + date.ToShortDateString() + "\"");
to declare and populate a javascript array on the client side of the page. Nice and simple.
But I want to do the same with async postback from UpdatePanel.
The closest I can guess is to create a .js file that just contains a var declaration, update the file during async postback, and then use it ScriptManagerProxy.Scripts.Addto add the .js file to the global area of the page.
Is there anything simpler? Notify him wrong?
Noel source
share