User283571144 posted
Hi GroupIII-Gary,
That callback can be accessed by a client script that provides function oncallback(e) {}. Is there a way I can have that script cause a postback of the page so I can get the response back at
the server?
As far as I know, there are mutiple way to use javascript to fired the postback.
For exmaple, we could use jquery trigger function to trigger the button click event or we could use ajax to send the response to the server webmethod.
More details, you could refer to below codes:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="../Scripts/jquery-1.9.1.min.js"></script>
<script>
//postback to the server with the button click event
$(function () {
setInterval(function () { $("#Button1").trigger('click'); }, 3000);});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" style="display:none" OnClick="Button1_Click" />
</div>
</form>
</body>
</html>
Result:

Best Regards,
Brando