Hello... i want to get the out string to ClientSide code with AjaxPro2
(I use .NET 2.0)

My code is like following

============ ASPX file :: START ============
        [AjaxPro.AjaxMethod]
        public DataSet GetDS(out string Error)
        {
                try
                {
                        DataSet ds = new DataSet();
                        //generate error
                        ...
                        return ds
                }
                catch (Exception err)
                {
                        Error = err.ToString();
                        return (new DataSet());
                }
        }
============ ASPX file :: END ============
============ Client-Side Javascript :: START ============
var err = "-";
function getDS()
{
    this._Default.GetDS(err, getDS_callback1);
}
function getDS_callback1(res)
{
    alert(err);
}
============ Client-Side Javascript :: END ============


I get the following error:
"The object of type 'AjaxPro.JavaScriptString' could not converted to
type 'System.String&'."

Is there any way to convert the System.String to JavaScriptString??
Or is there another way for me to get the Server-Side Exception string?

Regards,
Miguel
SWEDEN


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to