Ajax.NET - new release with Usage Guide

A new version is available free for download at http://ajax.schwarz-interactive.de/download/ajax.zip including a usage guide and a quick start.

- security issue fixed
- add DataRow
- add StringCollection
- add array return value (i.e. for System.String[])
- add Ajax.Utility.RegisterTypeForAjax (fixed path starting with two slahs)
- add a usage guide
- add more intellisense help
- removed some classes that are not used

If you have problems, questions or new ideas please contact me using the form at this web site. Please do not forget to enter your email address that I can answer direct. If your project is not working feel free to send me sample files.

Updated: I have updated the Ajax.NET Wrapper DLL this evening. Firefox is now working, again.

Published Thursday, April 14, 2005 11:28 PM by Michael Schwarz

Comments

# re: Ajax.NET - new release with Usage Guide

Friday, April 15, 2005 2:03 AM by digitalghost
Some Trouble With Unicode character....
Can You Fix It???
Thanks a lot

# re: Ajax.NET - new release with Usage Guide

Friday, April 15, 2005 2:15 AM by Michael Schwarz
@digitalhost: Yes, of course. I fixed some bugs yesterday and added some new features. Now, I will go on with the unicode problems. Check this blog later...

# re: Ajax.NET - new release with Usage Guide

Friday, April 15, 2005 3:52 AM by Hartvig
What's the license terms for your Ajax wrapper? We've been using our own in umbraco (GPL Licensed) for some time, but maybe it's better to use the one you've made...?

# re: Ajax.NET - new release with Usage Guide

Friday, April 15, 2005 7:41 AM by Michael Schwarz
There is no license at the moment. The Ajax.NET Wrapper DLL will be free with no warrenties. Support is available by email... You can use the Ajax.NET Wrapper for all your projects but it is not allowed to redistribute it as a standalone lib!

# re: Ajax.NET - new release with Usage Guide

Friday, April 15, 2005 1:03 PM by Julien Couvreur
I don't see any usage guide in the zip file you link, only the dll.
Also, the demo video is nice, but it would benefit a lot from being shortened and have some audio commentaries.
Cheers,

# re: Ajax.NET - new release with Usage Guide

Friday, April 15, 2005 4:00 PM by Michael Schwarz
Yes, the problem is that time is missing.

The usage guide can be found at: http://ajax.schwarz-interactive.de/download/AjaxGuide.doc

The quick guide at http://ajax.schwarz-interactive.de/download/quickGuide.txt

Thanks to Karl Seguin - http://www.openmymind.net/

# Ajax.NET - new release with Usage Guide (via Sean McCormack)

Monday, April 18, 2005 7:42 AM by TrackBack
I found this link on Sean's blog. There is a new .NET library for doing Ajax (Asynchronous JavaScript + XML) from Michael Schwarz. Here is a definition for Ajax....

# Problem running example

Friday, April 22, 2005 9:36 AM by Tony Castellano
Hello,

I am attempting to get AJAX working on our site. I have added the handler to the web.config. I have referenced the dll. When I call the method register types for ajax method I get the below error.

Any help would be greatly appreciated. Thank You

Tony Castellano

Specified cast is not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Specified cast is not valid.

Source Error:


Line 85: PageUtilities.SetPageExpiration(Response);
Line 86:
Line 87: Utility.RegisterTypeForAjax(this.GetType());
Line 88:
Line 89: if ((Request.QueryString[Constants.CountryQueryStringKey] != null) && (Request.QueryString[Constants.CountryQueryStringKey].Length > 0))


Source File: c:\development\minitab\store\gui\minitab.store.gui\pages\contactuspage.cs Line: 87

Stack Trace:


[InvalidCastException: Specified cast is not valid.]
Ajax.Utility.RegisterCommonAjax()
Ajax.Utility.RegisterTypeForAjax(Type t)
Minitab.Store.GUI.Pages.ContactUsPage.Page_Load(Object sender, EventArgs e) in c:\development\minitab\store\gui\minitab.store.gui\pages\contactuspage.cs:87
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()


# re: Ajax.NET - new release with Usage Guide

Friday, April 22, 2005 10:14 AM by Michael Schwarz
@Tony: You have to use Ajax.Utility.RegisterTypeForAjax(typeof(WebApplication1.WebForm1)); insteaf of this.GetType().

This is because ASP.NET will generate Assemblies of the ASPX files. If you use this.GetType() you will get the type of the new created and temporary available class. See the examples at my web site.

# re: Ajax.NET - new release with Usage Guide

Friday, April 22, 2005 1:05 PM by Tony Castellano
Hello again,

I did as you suggested and I still get the same exception. I was able to get your sample C# project working. But, when I add AJAX to my current web project, I get the same exception as I stated earlier.

However, when I add the two script tags explicitly to my page instead of calling the RegisterTypeForAjax method, everything worked fine.

Some information that may help track down why this is occurring:
Not that it should matter, but my page inherits from our custom page class which in turn inherits from the System.Web.UI.Page class. Also, my site is all https. I don't think these two things should effect your method.


I would be happy to attempt to debug this, if I had the source code. I would contribute my findings back to you. My email address is tcastellano@minitab.com, if you want to contact me directly.

Thanks in advance for your assistance,

Tony Castellano

# re: Ajax.NET - new release with Usage Guide

Sunday, April 24, 2005 8:40 AM by Shane
Visit my site http://www.ajaxmatters.com for more information on AJAX.

# re: Ajax.NET - new release with Usage Guide

Sunday, April 24, 2005 4:41 PM by rahul
sorry !! i am just testing the ajax features.

Thanks.