I've changed it to:
function getServerTime_callback(res)
{
if(res.error) { // sees if some error has happen
alert(res.error.Message);
}
WebForm1.txtInputBox.value = res.value
WebForm1.txtInputBox.disabled = true
}
I assume you meant (res.error) instead of (!res.error)
and the error came back as "Object reference not set to an instance of
an object."
Could this mean the callback is being executed without the VB.NET
function finishing?
Also, I'm sure the server code works, I set up a sperate page with the
the same function block being called by a standard non Ajax button, and
it executes fine.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---