New Blog Address

Blog moved to blog.schwarz-interactive.de

Dear blog reader,
I moved my content to blog.schwarz-interactive.de and will not add any new post here.

It was a pleasure to have you as my reader here.

Stay safe and healthy!

I will shortly redirect you to my new blog address...

New version of AJAX Wrapper for .NET

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.

For more details on AJAX: http://adaptivepath.com/publications/essays/archives/000385.php

30 Comments

Comments have been disabled for this content.