Blog Stats
  • Posts - 170
  • Articles - 4
  • Comments - 54
  • Trackbacks - 7

 

New version of AJAX Wrapper for .NET

If you are interested by AJAX, check this implementation for .Net

Posted by Michael Schwartz

A new version of the AJAX Wrapper DLL is available online for free at http://ajax.schwarz-interactive.de/download/ajax.zip. For demonstration I have added a new sample (including source code of sample project) that will show how to use the AJAX Wrapper DLL in you projects:

http://ajax.schwarz-interactive.de/csharpsample/default.aspx
http://ajax.schwarz-interactive.de/vbnetsample/default.aspx

Now, the AJAX Wrapper DLL is working with VB.NET, C# and any other .NET language. Firefox, Mozilla and Internet Explorer are supporting XmlHttp request, and there is no need to adapt Javascript code.

You can now use bool, int, string, xml and your own classes as return value. If you return your own class you will be able to use it directly as a real object. In the sample take a look at the AuthenticationInfo class.

function authenticate()
{
  Authenticate(user, pwd, authenticate_callback, authenticate_error);
}

function authenticate_callback(res)
{
  alert("Hello " + res.Username);
}
    
function authenticate_error(xmlhttp)
{
  alert("HTTP Status: " + xmlhttp.status);
}

On the client side you can use callbacks to allow asynchron calls to the webserver. A second callback will be called if an error occured.

 


Feedback

# re: New version of AJAX Wrapper for .NET

Gravatar There is a new version that will support System.Data.DataSet and DataTables. Arrays and DateTime added, too.

Free download at http://ajax.schwarz-interactive.de/download/ajax.zip 4/8/2005 11:22 PM | Michael Schwarz

# re: New version of AJAX Wrapper for .NET

Gravatar thanx sir

but i want to make the database changes using this ajax 5/12/2006 2:54 PM | nikilsai

# re: New version of AJAX Wrapper for .NET

Gravatar thanx sir

but i want to make the database changes using this ajax 5/12/2006 2:54 PM | nikilsai

Comments have been closed on this topic.
 

 

Copyright © Paschal L