Ajax.NET Wrapper with new features

I have added this night some features for the Ajax.NET Wrapper DLL:

- new utility to write needed script tags (Ajax.Utility.RegisterTypeForAjax(Type t))
- the common javascript will be added when one type is registered
- Ajax.Utility.HandlerPath and Ajax.Utility.HandlerExtension, web.config must be changed by hand!!

- fixed several bugs for DataSet and DataTable
- added exception handling
- fixed return value with more than one line, special chars removed
- removed the document.title change, the Ajax.NET Wrapper will be still free for everyone!!!

- C# sample is using Ajax.Utility
- VB.NET sample now using own classes

Download new Ajax.NET Wrapper DLL: http://ajax.schwarz-interactive.de/download/ajax.zip
Download C# and VB.NET samples: http://ajax.schwarz-interactive.de/download/ajaxsample.zip

I will upload a documentation (thanks to Karl) tomorrow morning. There will we a MSDN like overview of all the classes, too.

Published Wednesday, April 13, 2005 3:39 AM by Michael Schwarz

Comments

# re: Ajax.NET Wrapper with new features

Tuesday, April 12, 2005 10:45 PM by bestcomy
Well done, thanks.

# Why AJAX? The benefits of AJAX explained.

Wednesday, April 13, 2005 1:44 AM by TrackBack

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 4:20 AM by digitalghost
Some Trouble with encoding;
When I pass a string contains chinese character from client to server
the problem occurs .......
how to resolve the problem ?????

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 5:41 AM by Jayaveer.B
Can i access tables with table names rather than index?

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 6:56 AM by Michael Schwarz
Unicode chars are not working at the moment. I will do this this evening...

At the moment you cannot use table names instead of using the index. I will add this feature...

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 8:28 AM by Charles Chen
Just out of curiosity, are any of the browsers on Mac supported?

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 9:18 AM by Philip Nelson
Noticed that it soesn't work with Firefox on windows or linux. The username demo works but the dataset and class demos just post back and redraw the screen.

Keep up the good work!

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 11:57 AM by Michael Schwarz
It is working with Firefox on Windows! The only thing I did not see was that the button TAG will submit the form. I will change it to a different HTML, but the Ajax.NET Wrapper is working with Firefox, Mozilla and Internet Explorer.

On Mac the Safari Browser is supported (I think). I do not have a Mac to test this.

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 12:26 PM by buk
Do you have any plans to associate a license to this wrapper?

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 12:27 PM by Christoph
Hi Michael
Yesterday, I had problems with the Wrapper. With the new version it's going fine. The Problem with the buttons do you know(preview entry)

THANKS FOR THIS WRAPPER

By
Christoph

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 12:36 PM by Christoph
Is it possible to Push data from Webserver without userinput.
e.g. update servertime every 10 Seconds

thanks

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 2:32 PM by Michael Schwarz
@buk: there will be no fee at the moment for the Ajax.NET Wrapper DLL.

@Christoph: I fixed some problems during the last night (11 until 4 o'clock!!!). What do you mean with the buttons problem? That Firefox issue? I will make a change to the solution this night...

Yes, it is possible to "push" data from web server to the client. Currently I am working on something like events or delegates from Javascript clients. The client will iniciate a connection to the server. If the event occur on the server the result or a message will be send back. More tomorrow here on my blog!!!!

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 2:33 PM by Michael Schwarz
@Christop: If you want to get the server time every 10 seconds you can write a small function that will be called every 10 seconds using window.setTimeout. Perhaps you will look at http://demo.pctopp.com/. This is my project at work...

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 4:05 PM by Christoph
Hy
Yes, the Firefox issue.
The 10 seconds was only an example. The setTimeout could be a solution. I'll wait until you've done the events/delegates.

by
Christoph

# re: Ajax.NET Wrapper with new features

Wednesday, April 13, 2005 10:00 PM by digitalghost
Will you associate a license to this wrapper in the future?
can I use it in a commerce project???

# re: Ajax.NET Wrapper with new features

Thursday, April 14, 2005 1:21 AM by Michael Schwarz
Everybody can use this free Ajax.NET Wrapper DLL. You can use the DLL in any project you want. You cannot resale this but you can deploy it with your projects.

# re: Ajax.NET Wrapper with new features

Monday, April 18, 2005 9:18 AM by Andrew Cupper
This is really neat. It would be nice if you could extend the JavascriptMethod attribute to indicate if session state is required (like the web service WebMethod attribute). The PageHandlerFactory would need to check the attributes of the method being called and return a PageHandler marked with IRequiresSessionState if session state is required, (eg. PageWithSessionHandler which derives from PageHandler).

# re: Ajax.NET Wrapper with new features

Monday, April 25, 2005 2:49 PM by Michael Schwarz
SessionState is now available, please check my last blog at http://weblogs.asp.net/mschwarz or go do my download at http://ajax.schwarz-interactive.de.