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.

8 Comments

  • Hartvig said

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

  • Michael Schwarz said

    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!

  • Julien Couvreur said

    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,

  • Tony Castellano said

    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()


  • Michael Schwarz said

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

  • Tony Castellano said

    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

Comments have been disabled for this content.