SreeRam Kondagorla

SreeRam Kondagorla

  • NA
  • 234
  • 52.7k

Stop Loader on Stay request.

Oct 17 2017 7:51 AM
I have loader.that will come in every postback request.
For one of the Postback I'm showing Stay or Leave Alert.if it is Leave that page will redirect to some page.that is fine.that time loader will go.if he select stay it is not going to anywhere but but the loader is not going.
'
Sys.Application.add_load(applicationLoadHandler);
Sys.Application.add_unload(applicationUnloadHandler);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestHandler);
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandler);