Click to See Complete Forum and Search --> : ClientScript.GetCallbackEventReference() method problem


MikeOS
09-05-2007, 09:28 AM
Hi all,

I'm trying to do a callback and I'm having a slight problem with the GetCallBackEventReference() method, below is my method:

this.ClientScript.GetCallbackEventReference(this, "getValues", "applyResult", null);

The problem I'm having is the second parameter ("getValues"), this is the parameter used to pass a value from the client to the server. Instead of stating an explicitly value I've specified a JavaScript function called getValues which returns a value back to the call, at least that is what I set it up to do but what I'm finding is that instead of the returned value being passed to the server the actual JavaScript function in full is being passed to the server, in other words the JavaScript function doesn't actually execute instead the function itself becomes the passed up parameter.

So my question: is there anyway to set up the second parameter so it actually runs the JavaScript code? I've tried adding the return keyword to the front but this doesn’t work.

Any help much appreciated.

Thanks