Ajax.NET and enums, XmlDocument,...

Michael Schwarz on Friday, June 3, 2005
Labels

With the free Ajax.NET Library you can use enums, now. I will export the value as an string:

enum MyType{ Unkown, Starting, Stopped, Killed } MyType x = MyType.Starting;   // this will return "Starting" on the client-side

I also fixed the XmlDocument return value. You will have a XML DOM object on the client to parse this XML (this will be different in Internet Explorer and FireFox!!). If you want to get the XML as an string you can use .request.responseText instead of .value.

To use an HtmlControl as an argument has been fixed, also. There was a wrong client-side script that didn't send the complete control to the server. Cache support can be used together with changing the method name or specifiying the sessionstate support.

You can download the version 5.6.3.4 from my private web page http://ajax.schwarz-interactive.de/ [1].