RegisterClientScriptBlock within AJAX method call

后端 未结 5 1404
长情又很酷
长情又很酷 2020-12-09 12:53

I am trying to RegisterClientScriptBlock in a method that is only called via an AJAX call. It doesn\'t appear to actually register the script on the page and I\'m guessing

5条回答
  •  心在旅途
    2020-12-09 13:00

    If there's anyone else out there like myself, and the accepted answer STILL won't work for you, then look no further.

    Check out this link - a simple class that pops a Javascript alert no matter if you're on page load, unload, AJAX request, etc:

    WebMsgBox.Show("Your message here");
    

提交回复
热议问题