Using asp.net if I want to call a JS function from code behind I can use a ScriptManager...
string saveSuccessScript = "loadPopUp('Saved');";
ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), key, saveSuccessScript, true);
But what if I want to call the setTimeout js function
setTimeout(function () {
$("#saveDialogSingleFeature").dialog('close')
}, 3000);
which doesnt have a name. Ive given it one and tried to call it...
setTimeout(function timeO() {
$("#saveDialogSingleFeature").dialog('close')
}, 3000);
string saveSuccessScript = "timeO();";
ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), key, saveSuccessScript, true);
this didnt work...any idea as to what I am doing wrong. ta