Download Ajax.NET Wrapper usage guide

You can download a first usage guide for the Ajax.NET Wrapper DLL at http://ajax.schwarz-interactive.de/download/AjaxGuide.doc. Thanks Karl for writing this useful documentation!!! A quick guid is available as text file at http://ajax.schwarz-interactive.de/download/quickGuide.txt.

Currently the Ajax.NET Wrapper DLL does not support UTF chars. I will add this in the next release. The events are working already but I have to do some more work on it before put it on my web server.

4 Comments

  • smackdaddy said

    Very cool! Good Work!!

    I've tried adding a custom class to return a public property, but it doesn't seem to be supported. Any idea if this is possible? What about returning values from methods in a custom class?

    Simple code below:

    public class Contacts
    {
    private string _name;

    public string Name
    {
    get{return _name;}

    set{_name = value;}
    }

    }


    [Ajax.JavascriptMethod]
    public Contacts ExecuteJavascript()
    {
    Contacts c = new Contacts();

    c.Name = "My Name";
    return c;
    }








    function Doit(){
    var c = ExecuteJavascript();
    alert(c.Name);
    }

    Thanks in advance.

  • Ryan LaNeve said

    Returning a DataTable works great, but it seems returning a single DataRow is not. Any chance we could get support for returning a DataRow object?

    Thanks for what you've done so far.

  • Karl said

    Smack:
    I've pointed out that properties dont' work with objects (which is why i left it out of the doc for now)...only public fields (yuck!) are supported....from the brief chat with Michael, this will be taken care of :)

    Karl

Comments have been disabled for this content.