views:

155

answers:

1

Is there a simple explanation on MSDN of WebForm_DoCallback function?

All I can find is this article http://msdn.microsoft.com/en-us/magazine/cc163878.aspx which does include implementation of WebForm_DoCallback but doesn't do a good job explaining parameters themselves.

function WebForm_DoCallback(eventTarget, eventArgument, 
eventCallback, context, errorCallback) 

Like what exactly does it expect as an 'eventTarget'? What is 'context'? Etc...

A: 

Hey,

To what context do you need to use this with? The string is generated by the following method call in ClientScriptManager: http://msdn.microsoft.com/en-us/library/ms153110%28v=VS.100%29.aspx

Using this is what you can use to produce the above statement, without having to know the details.

HTH.

Brian
I'm actually invoking this function on client side WebForm_DoCallback(...) so I'm supplying all the params. Hence the question.
dev.e.loper
I understand. Sorry I looked for resources for the client method but didn't find any good ones. In the meantime, to work around that, you can generate the method call on the server and pass to the client, and use something like eval() to evaluate it.
Brian