Ajax.NET - static methods and AjaxRequireSessionState
The session state will be available only if you add the new Ajax.AjaxRequireSessionStateAttribute. The last release did add the session state for all methods. See the new examples at http://ajax.schwarz-interactive.de/.
Also, there is no need for an default constructor. You can use static methods, now.
Feel free to download the latest Ajax.DLL at http://ajax.schwarz-interactive.de/download/ajax.zip. The examples are available to download at http://ajax.schwarz-interactive.de/download/ajaxsample.zip.
I will add a new list online to add your wishes for the next releases. There will be a bug list also.
Updated: The Ajax.AjaxReuireSessionStateAttribute has been replaced be arguments for the Ajax.AjaxMethodAttribute. There is a new enum: HttpSessionStateRequirement{ReadWrite, Read, None}.
3 Comments
Comments have been disabled for this content.
Wenbo said
Hi, I tried to set up the sample this afternoon. Somehow, I keep getting the following error message:
Microsoft JScript runtime error: 'DemoMethods' is undefined
Please help.
Wenbo
Michael Schwarz said
@Wenbo: is the current example working, now?
Andrew Cupper said
Hey, you guys (Michael & Damien) should merge code and work on this together, rather than duplicating effort. I guess this was the idea with the open source project? I had another idea (which Damien has already implemented) - you could cache the javascript that is generated for each Type, rather than regenerating it for each request (of that Type). Also, is there a forum for publishing custom converter code. It would be nice to see what other people are doing, and eventually get some of the more useful converters added to the code base.