Use following code in your callback:
<script type="text/javascript">
function callback(res) {
if(res.error != null) {
alert(AjaxPro.toJSON(res.error));
return;
}
alert(res.value);
}
</script>
This code will check of there is any exception thrown on the web
server during the invoke of AjaxMethods.
Regards,
Michael
On 6/23/06, o0JoeCool0o <[EMAIL PROTECTED]> wrote:
>
> I have found that 99% of the time when this happens to me its related
> to my database code not working. The problem is you will not get an
> error page if you for example have the wrong conenciton string in your
> web.config... normally you get a big error message page, but instead
> because there is no post back from the server there is nothing to say
> "hey this method broke" and as such it will return an empty object.
>
> Try copying the function to a "postback style" page so if it is
> erroring out youll see the error message and know for sure that your
> dataview object is not empty.
>
>
> >
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---