473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

RaiseCallbackEvent not returning to client in production environme

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.

Jun 19 '07 #1
1 2405
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)

Roy wrote:
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.
Jun 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John | last post by:
Hi all, I've an interesting problem in that when I set my textbox enabled property to true and run my app and a Javascript function updates it, I can access the changed data server-side and it...
2
by: jslaybaugh | last post by:
I am trying to bind to a GridView or DetailsView after a callback using the ClientCallback Manager in the new .NET 2.0 framework. See below for the HTML followed by the VB code: <html...
0
by: William Sullivan | last post by:
My code goes something like this: public void RaiseCallbackEvent(string eventArgument) { try{ callbackText = SomeReallyObscureFunction(); catch(SomeReallyObscureException sroe) {...
8
by: Chris Cap | last post by:
I am getting some strange behavior when using RaiseCallbackEvent. I have a form that implements ICallbackEventHandler. During the client callback, a session variable is set that is used on the...
0
by: Hardy Wang | last post by:
Hi all, I am reading MSDN help to create my first client callback testing page. From...
4
by: Nathan Sokalski | last post by:
I am a beginner with AJAX, and have managed to learn how to use it when passing single parameters, but I want to return more than one value to the client-side JavaScript function that displays it....
1
by: emailseshu | last post by:
Hi, Iam trying to check the Client Side CallBack Feature in ASP.NET Iam able to call th RaiseCallbackEvent from the Client Side Javascript Function but when I go to the debug mode to check the...
0
by: David | last post by:
Hi, Every two seconds, the client callback starts sending a value to the server (via javascript). That value can be empty or not. The session variable "flag" gets the value "1" if the value is...
0
by: =?Utf-8?B?T2xlZw==?= | last post by:
using .NET 2.0. I have an UpdatePanel on the page and also have ICallbackEventHandler implemented. I implemented RaiseCallbackEvent with code and all. My question is: Can I tell on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.