I have a two buttons on different pages which perform the same action. In one case, the button is ajaxified and in the other it is not. In the code which handles both button clicks, I need to call some client-side script. If the button is ajaxified, I simply add the script using ajaxamanager.ResponseScripts.Add. In the nonajaxified scenario, I simply use RegisterScriptManagerScript.
My question is:
is there a way within code to tell if an ajax update is occurring. Like I said, I would like to have one function which handles the button cick in both scenarios. Within this function, I need a way to branch off and call the ajaxmanager code if an ajasupdate is occuring, and the other if it is not.
My question is:
is there a way within code to tell if an ajax update is occurring. Like I said, I would like to have one function which handles the button cick in both scenarios. Within this function, I need a way to branch off and call the ajaxmanager code if an ajasupdate is occuring, and the other if it is not.