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.

Published Thursday, April 14, 2005 5:38 PM by Michael Schwarz

Comments

# re: Download Ajax.NET Wrapper usage guide

Thursday, April 14, 2005 1:08 PM by smackdaddy
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.

# re: Download Ajax.NET Wrapper usage guide

Thursday, April 14, 2005 1:20 PM by Ryan LaNeve
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.

# re: Download Ajax.NET Wrapper usage guide

Thursday, April 14, 2005 2:06 PM by Karl
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

# re: Download Ajax.NET Wrapper usage guide

Thursday, April 14, 2005 2:21 PM by Michael Schwarz
I will upload the next version this evening (14.04.2005). Properties should work, I will also support DataRows...