RaiseCallbackEvent not returning to client in production environme

G

Guest

Greetings,

I've sucessfully implemented a client callback using the RaiseCallbackEvent
method in the ICallbackEventHandler interface and the
GetCallbackEventReference helper method. Everything works great in all our
test environments.

The problem I'm having only occurs in our production environment. For
reasons I suspect are security related, the method specified in
GetCallbackEventReference() is never called.

For example, ReceiveServerData is never called in our production
environments (but it is called in test environments).

string cbReference = Page.GetCallbackEventReference(this, "arg",
"ReceiveServerData", "context");

Can anyone provide the reason or some insight as to why the call to the
client from the server would fail?

Thanks.
 
B

bruce barker

on the client side, a call to the server is made with XMLHttpRequest.
when the request completes, client side code parses the response, and
then call the registered routine.

several things can go wrong. the server may choke on the request, which
will cause the client to ignore it. your client code may get a scripting
error, which will stop all processing. scripting may be turned off in
the client.

use a javascript debugger and call your production server. on request
complete, view the response string and see if valid.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top