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.
4 Comments
Comments have been disabled for this content.
Christopher Shain said
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...
Michael Schwarz said
I will make a sample in VB.NET and put it on my web server.
Michael Schwarz said
@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...
Michael Schwarz said
@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.*.