AJAX .NET Wrapper DLL (coming soon: .NET Events and Delegates in Javascript)

The downloads of AJAX .NET Wrapper DLL is still growing! Thanks to all bloggers that have done there job to write about it.

For the next release I am searching for more features that you wish to be included in the free version. Following features are ready at the moment:

- build a Javascript method by simply adding an attribute to your methods
- return every data type like int, long, double, bool, string,...
- return your own classes you are using in your favorite programming language
- return System.DateTime, System.Data.DataSet, System.Data.DataTable
- return arrays of objects
- use the returned objects as a local Javascript object (i.e. result.Tables[0].Rows[0].FirstName or result.TimeStamp.toLocaleString())

Please send ideas, wishes and other feedback using the contact form at: http://weblogs.asp.net/mschwarz/contact.aspx. Don't forget to give your contact email address!

The next release will reduce the size of the Javascript (XmlHttpRequest helper functions) that will be used to do the communication with the web server. There will be also a framework that will show you how to use events and delegates from C# in Javascript!!!

Updated: There is a video available where I show how to change existing code to use the AJAX .NET Wrapper: http://ajax.schwarz-interactive.de/download/ajax.wmv or http://ajax.schwarz-interactive.de/download/ajaxvideo.zip.

 

Published Monday, April 11, 2005 7:22 PM by Michael Schwarz

Comments

# AJAX .NET Wrapper DLL

Monday, April 11, 2005 12:00 PM by TrackBack

# re: AJAX .NET Wrapper DLL (coming soon: .NET Events and Delegates in Javascript)

Monday, April 11, 2005 1:35 PM by David Cumps
Great! I'm already looking forward to the next release :)

# re: AJAX .NET Wrapper DLL (coming soon: .NET Events and Delegates in Javascript)

Monday, April 11, 2005 2:00 PM by Gopinath Varadharajan
I have published ! your Link here...
in TheServerSide.Net site

http://www.theserverside.net/news/thread.tss?thread_id=33185

Thanks for the wonderful Start on AJAX using .Net

Gopi

# re: AJAX .NET Wrapper DLL (coming soon: .NET Events and Delegates in Javascript)

Monday, April 11, 2005 4:31 PM by Paschal
Great!

# re: AJAX .NET Wrapper DLL (coming soon: .NET Events and Delegates in Javascript)

Monday, April 11, 2005 6:26 PM by Christopher Shain
What do we have to do to get the properties of custom objects? I am trying to do something like this:

<Ajax.JavascriptObject()> Public Class Foo
Public strFoo As String
End Class

<Ajax.JavascriptObject()> Public Class AuthenticationInfo
Public MyFoo As New Foo
Public Username As String
Public Ticket As String
Public UserID As Int32 = 0
End Class

And then trying to access ret.MyFoo.strFoo. ret.MyFoo is defined, but ret.MyFoo.strFoo isnt. What am I doing wrong? It seems to have this capability with datasets in the C# example...

# re: AJAX .NET Wrapper DLL (coming soon: .NET Events and Delegates in Javascript)

Tuesday, April 12, 2005 6:52 AM by Michael Schwarz
I will make a sample in VB.NET and put it on my web server.

# re: AJAX .NET Wrapper DLL (coming soon: .NET Events and Delegates in Javascript)

Tuesday, April 12, 2005 10:27 AM by Jeff Gonzalez
First off, this library is great. Excellent implementation.

I have had a scenario where I have dependant drop down lists say for Year,Make,Models of cars.

When I choose a Year, the Make <select> is populated. When I choose a Make the Model <select> is populated. So far I am able to accomplish this without a single postback which is really great. The problem I have run into is on submission of these filters, the values are not being persisted across to the servers, especially in a scenario where they had previous values and I changed them.

I have tried a couple of different ways of populating the <select>, i attempted to clear the options and readd them with the new Option() syntax as well as simplying using an array and pushing strings onto it and then just doing an array.join('') and setting that as the <select> .innerHTMl.

I haven't been able to get this working yet, any ideas?

# re: AJAX .NET Wrapper DLL (coming soon: .NET Events and Delegates in Javascript)

Tuesday, April 12, 2005 5:42 PM by Michael Schwarz
@Jeff: This must be done on a different way. I would remove this complete action to the client. Everytime you change a <select> you could change a hidden value of you form. Perhpas this can help you. I will play around with a sample, perhaps I find a good solution...

# re: AJAX .NET Wrapper DLL (coming soon: .NET Events and Delegates in Javascript)

Tuesday, April 12, 2005 6:22 PM by Michael Schwarz
@Christopher Shain: I have done a test with the current release and it is working fine. I will upload the new version in some minutes. It will be version 5.4.13.*.