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}.

Published Tuesday, April 26, 2005 2:16 PM by Michael Schwarz

Comments

# re: Ajax.NET - static methods and AjaxRequireSessionState

Tuesday, April 26, 2005 10:49 AM by Damien McGivern
I've just uploaded an update to my library too to include the same feature after reading Andrew Cupper comment. http://weblogs.asp.net/mschwarz/archive/2005/04/25/404214.aspx#404477 I thought it was a good idea.

Instead of creating a new Attribute as you have done I just added a new parameter for the existing Attribute see: http://mcgiv.com/blog/ajax/#sessionState and the demo http://mcgiv.com/blog/ajax/example3/default.aspx

# re: Ajax.NET - static methods and AjaxRequireSessionState

Tuesday, April 26, 2005 5:06 PM by Wenbo
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

# re: Ajax.NET - static methods and AjaxRequireSessionState

Wednesday, April 27, 2005 2:03 AM by Michael Schwarz
@Wenbo: is the current example working, now?

# re: Ajax.NET - static methods and AjaxRequireSessionState

Thursday, April 28, 2005 10:53 AM by Andrew Cupper
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.