I have deceided to target DNN version 4.5.2 and later. In this custom module I am developing in C# I am trying to convert an Ajax project built in non-DNN ASP.Net.
This code has a timer in the javascript that calls a callback. The callback doesn't seem to work and I am trying to figure out how to convert this to DNN Ajax. Here is the non-DNN C# code:
//Register Ajax client script to client's browsers. This has to be hard coded.
string cbReference = Page.ClientScript.GetCallbackEventReference(this,"arg","ReceiveServerData","context");
string callbackScript = "function CallServer(arg, context)" + "{ " + cbReference + "} ;";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "CallServer", callbackScript, true);
How would I replace this code to work in DNN Ajax?
Also could someone just hit the high points of what using 4.5.2 and later buys one in the Ajax world?