I have written a module in DNN 6.2 where I need to execute JavaScript code on the client side both on the initial firing and on subsequent postbacks. This means after the server has presented the page response back to the user (either initially or after a postback response to a search button has been processed by the server.
I have been working for over 6 hours today trying to get it to work. Every post I see says that what I am doing should be working, but it is not.
string sName = "NearMapStartupScript";
string cstext = string.Format("ProcessPoints('{0}', '{1}');", hdnMapData.ClientID, txtMapData.ClientID);
ScriptManager.RegisterStartupScript(this, typeof(string), sName, cstext, true);
The result is the ProcessPoints Javascript runs the first time, but it does not fire on any subsequent cases.
I need a solution to this that actually works for BOTH first time and subsequent postbacks. Again, this is AFTER the server has done its work and the page is returned to the user. I want a JavaScript function to fire.
Thank you so much,
p