Ajax.NET version 5.7.22.2

I updated the latest release of the Ajax.NET library (5.7.22.2) on my website http://ajax.schwarz-interactive.de/. To download the library click here. The new ajax.dll is not included in the exmaple zip file!

Change log:
- fixed missing semicolon in common JavaScript
- fixed XML support
- added DataView and DataRowView support
- fixed some issues for HtmlSelect controls
- added bool[] as argument
- fixed RetreiveParameters (if there was a "=" in the argument value, long text issue)
- fixed Server.Transfer, use RegisterTypeForAjax with the argument Page (this)
- fixed Bitmap in classes (removed semicolon at the end of new AjaxImage();)

For all of the developers asking for the source code. SediSys.com will offer the source code hopefully next week. They will go on with the development of the Ajax.NET library as an open source project. 

Published Saturday, July 23, 2005 12:03 AM by Michael Schwarz

Comments

# re: Ajax.NET version 5.7.22.2

Friday, July 22, 2005 7:08 PM by Wallym
Awesome. Thanks.

# re: Ajax.NET version 5.7.22.2

Saturday, July 23, 2005 2:42 AM by Peter
Hi Michael, I thank you also for the library. For me it was never a problem to wait for the source code...

# re: Ajax.NET version 5.7.22.2

Saturday, July 23, 2005 8:00 AM by Dan Barthel
Michael, thanks. Not to be a nag, but what are your thoughts on a documentation project?

# re: Ajax.NET version 5.7.22.2

Saturday, July 23, 2005 8:05 AM by Michael Schwarz
Hi Dan, what do you mean with "documentation project"?

# re: Ajax.NET version 5.7.22.2

Saturday, July 23, 2005 9:24 AM by Sonu Kapoor
Thanks a lot. The library is great.

# re: Ajax.NET version 5.7.22.2

Saturday, July 23, 2005 1:28 PM by Olli
Hi Michael, from me also a big "Thank you!!!". We are very happy to use your library.

# re: Ajax.NET version 5.7.22.2

Saturday, July 23, 2005 3:47 PM by Andre Pangraz
I can only say "Thank you Michael Schwartz!!!". I am using it in a lot of web projects (Intranet applications only). The performance increases by factor 20 or more. Go on with the development and help Microsoft to build the ATLAS Framework be the next Ajax.NET library!!!

# re: Ajax.NET version 5.7.22.2

Sunday, July 24, 2005 2:55 AM by Quang Minh
Hi Micheal, thank you very much.
You said that you fixed bug Server.Transfer use RegisterTypeForAjax with the argument this, but in my test, there was still an error:
Specified cast is not valid. Trace: at Ajax.Utility.RegisterTypeForAjax(Type t) at Test.Test.Page_Load(Object sender, EventArgs e)
Any suggestion? Thank a lots

# re: Ajax.NET version 5.7.22.2

Sunday, July 24, 2005 6:41 AM by Michael Schwarz
Hi Quang,

can you please send me the source code that will register the type? Please use my contact form to contact me.

CIAO
Michael

# re: Ajax.NET version 5.7.22.2

Sunday, July 24, 2005 7:16 AM by Quang Minh
Hi,
Here my scenario: from your example CsharpSample, I add one class called MyHttpHandler which implememt IhttpHandler. In which it simple transfer to the page default.aspx. In the web.config, add one hander for the request from tab.aspx.
If you input the address http://localhost/CSharpSample/tab.aspx, you will see the error

I realize that if I use the command context.Response.Redirect in the MyHttpHandler, it’s ok.

The file MyHttpHandler here:

using System;
using System.Web;
using System.Web.Handlers;

namespace CSharpSample
{
/// <summary>
/// Summary description for MyHttpHander.
/// </summary>
public class MyHttpHandler : IHttpHandler
{
#region IHttpHandler Members

public void ProcessRequest(HttpContext context)
{
context.Server.Transfer("default.aspx");
}

public bool IsReusable
{
get
{
return true;
}
}

#endregion
}
}

The web.config here:

<configuration>
...
<system.web>

<httpHandlers>
<add verb="POST,GET" path="csharpwrapper/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
<add verb="*" path="tab.aspx" type="CSharpSample.MyHttpHandler, CSharpSample" />
</httpHandlers>
...
</system.web>
</configuration>

# re: Ajax.NET version 5.7.22.2

Sunday, July 24, 2005 1:51 PM by John
Have you tested your assembly with asp.net 2.0? Beta 2?

# re: Ajax.NET version 5.7.22.2

Sunday, July 24, 2005 8:32 PM by Wallym
Michael,

thank you for the library. I would love to read the documentation that you come up with and am looking to download/read it.

Wally

# re: Ajax.NET version 5.7.22.2

Sunday, July 24, 2005 11:16 PM by Quang Minh
Thank for your reply,
But I still have problem: I changed your sample, anbd it's running well, but in my project, I put an ajax function to the UserControl, so it can be convert from System.Web.UI.UserControl to System.Web.UI.Page. Can you give me the solution? Thank you

# re: Ajax.NET version 5.7.22.2

Monday, July 25, 2005 1:48 AM by Michael Schwarz
Hi Quang,

you have to use Ajax.Utility.RegisterTypeForAjax(typeof(CSharpSample.DemoMethods),this.Page);.

CIAO
Michael

# re: Ajax.NET version 5.7.22.2

Monday, July 25, 2005 7:20 AM by Simone
Too bad SediSys.com is just in german.. :-(
and too bad SF.net closed the project

Hope to see more docs and forum in the near future

Simone

# re: Ajax.NET version 5.7.22.2

Monday, July 25, 2005 9:12 AM by Guirec
Just 2 things :
1. I am waiting for source code but, as Simone, I am sad I will probably be unable to download it as I don't speak a word of German.
2. The implementation of your dataset converter transforms Columns array into a set of object properties. This hardly limits the use of your library in generic environments.

Anyway it 's a cool library, thanks for the good job.

Guirec

# re: Ajax.NET version 5.7.22.2

Monday, July 25, 2005 10:02 AM by Michael Schwarz
Hi to all, I did not talk to SediSys, but I will say that they will offer an english web page where you can download the source code and the latest releases, of course.

CIAO
Michael

# re: Ajax.NET version 5.7.22.2

Monday, July 25, 2005 10:45 AM by Anders M
A big unanswered question remains:

Will it remain Opensource _and_ free? for commercial use also?

Its hard to put in use until

:-)

# re: Ajax.NET version 5.7.22.2

Monday, July 25, 2005 10:48 AM by Anders M
Could something like this be made in asp.net / ajax.net ?

http://php5.bluga.net/progressDemo/demo.php

That could be a great example.

# re: Ajax.NET version 5.7.22.2

Monday, July 25, 2005 10:50 AM by Michael Schwarz
@Anders: Yes, it will be Open Source!!!! ...you can download the source code! Please contact chubinger [at] sedisys.com how will be resposible for the Open Source Project.

# re: Ajax.NET version 5.7.22.2

Monday, July 25, 2005 11:01 AM by Fabian Ferreyra
Thanks Michael! The Server.Transfer bug is fixed, so I'm more than happy :) Thanks for this amazing library.

# re: Ajax.NET version 5.7.22.2

Monday, July 25, 2005 7:18 PM by David M. Kean
Any reason why the assembly is no longer strong-named? I can no longer reference it from my own strong-named assembly.

# re: Ajax.NET version 5.7.22.2

Tuesday, July 26, 2005 2:10 PM by Anders M
Michael Schwarz >

And will it also stay free for commercial use also?

# re: Ajax.NET version 5.7.22.2

Tuesday, July 26, 2005 3:04 PM by Michael Schwarz
@Anders: I have send SediSys the same questions, they will give an answer here in the feedback.

CIAO
Michael

# re: Ajax.NET version 5.7.22.2

Wednesday, July 27, 2005 4:12 AM by Christian Hubinger
Hi!

At the moment the License is still in discussion internaly.
I can only gurantee that it will be an OSI compatible Open Source license and that there will be a possibility for commercial use.

Please stay patience, all that questions will be answered as soon as we release the code. Wich will hopefully happen within the next few days.

greetings,
chris

# re: Ajax.NET version 5.7.22.2

Wednesday, July 27, 2005 10:12 AM by Eric
Michael, can you clarify the role that you and sedisys.com respectively will be playing in this project? At first, sedisys appeared to be simply hosting, but as questions about the license arise, it seems that they will be owning the project going forward. I think a lot of us would like to see a posting about this on the main page.

# re: Ajax.NET version 5.7.22.2

Wednesday, July 27, 2005 10:19 AM by Eric
Chris, from your comments (OSI compatible) can we assume that it will also comply with the OSI Open Source Definition (OSD) found at the link below?

http://opensource.org/docs/def_print.php

# re: Ajax.NET version 5.7.22.2

Wednesday, July 27, 2005 10:39 AM by Christian Hubinger
Hi!

1.) We will act as the project owners and will coordinate the development process. We will also have some fulltime developers working on the library to enshure fast and continious development.

2.) Yes, the license will follow the rules on the link you posted.
The exact license terms will be published along with the source code as soon as possible.

greetings,
chris

# re: Ajax.NET version 5.7.22.2

Wednesday, July 27, 2005 11:09 AM by Ingo
Do you already have a website?

# re: Ajax.NET version 5.7.22.2

Wednesday, July 27, 2005 12:48 PM by Christian Hubinger
Hi!

The Project site will be available when we release the source. Currently we only hav our german company homepage.

greeings,
chris

# re: Ajax.NET version 5.7.22.2

Wednesday, July 27, 2005 7:28 PM by Dan Herfner
Hi Michael,

I would say you THANKS for this GREAT SOFTWARE!!! Do you know where we can vote to bring you up to an MVP???

# re: Ajax.NET version 5.7.22.2

Friday, July 29, 2005 11:51 AM by Phil
Great stuff! Thanks so much for making this available.

One question, even with the new .dll, I'm still getting a missing semicolon error. I don't get it on localhost, but when I move it to another server, I get it. Any suggestions?

# BUG ANYONE?

Friday, July 29, 2005 1:32 PM by Hugh Knaus
I tried implementing the HttpHandler on request to only a particular subfolder by setting up my web.config as follows:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<location path="">
<system.web>
...
<authorization>
<allow users="*" />
</authorization>
...
</system.web>
</location>
<location path="UserServices">
<system.web>
<httpHandlers>
<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
</httpHandlers>
<authorization>
<allow users="*" /> <!-- THIS WOULD BE <deny users="?" />, BUT FOR SIMPLIFICATION I'VE LEFT SET TO ALLOW ANONYMOUS -->
</authorization>
</system.web>
</location>
</configuration>


My project (AjaxExampleError) contains these simple files:

/Webs/AjaxExampleError/Index.aspx
/Webs/AjaxExampleError/Global.asax
/Webs/AjaxExampleError/Web.config
/Webs/AjaxExampleError/Assembly.vb
/Webs/AjaxExampleError/UserServices/Index.aspx


Using the RegisterTypeForAjax in the Page_Load of /UserServices/Index.aspx, like so: Ajax.Utility.RegisterTypeForAjax(GetType(AjaxExampleError.UserServices.Index)), at runtime creates these dynamic Javascript references in the page:

<script type="text/javascript" src="/Webs/AjaxExampleError/ajax/common.ashx"></script>
<script type="text/javascript" src="/Webs/AjaxExampleError/ajax/AjaxExampleError.UserServices.Index,AjaxExampleError.ashx"></script>

Which would be OK except that the files do not exist in the SRC locations. The files actually exis at:

/Webs/AjaxExampleError/UserServices/ajax/common.ashx
/Webs/AjaxExampleError/UserServices/ajax/AjaxExampleError.UserServices.Index,AjaxExampleError.ashx

So, proceeding to manually reference these files in the /Webs/AjaxExampleError/UserServices/Index.aspx page works until you look at the Javascript found in: /Webs/AjaxExampleError/UserServices/ajax/AjaxExampleError.UserServices.Index,AjaxExampleError.ashx

The URL contained in the file is referenced as: url:'/Webs/AjaxExampleError/ajax/AjaxExampleError.UserServices.Index,AjaxExampleError.ashx'

Which is wrong and generates an error of 'HTTP request failed with status: 404 404'. The URL would be correct is it were: url:'/Webs/AjaxExampleError/UserServices/ajax/AjaxExampleError.UserServices.Index,AjaxExampleError.ashx'

Has anyone else ran onto this and found a fix? Contact me for an example project of the error.

-Hugh
hugh@justflies.com

# re: Ajax.NET version 5.7.22.2

Sunday, July 31, 2005 10:54 AM by Hugh Knaus
I fixed the bug myself but, only after decompiling Michael's 5.7.22.2 version of the Ajax.dll, creating a project of my own, and then changing code in one method. I've emailed Michael my project hopefully this will speed the resolution along for everyone else.

-Hugh
hugh@justflies.com

# RE:BUG ANYONE?

Wednesday, August 03, 2005 11:34 AM by Jason Prell
You can not implement an HTTP Handler in a location tag as you are trying to do. HTTP Handlers have to be at the top level of an application and are inherited by sub-directories. If you want to apply an HTTP Handler only to the sub-directory and not at the same level as the web.config and current application, you will need to make the sub-directory its own application root in IIS.

# re: Ajax.NET version 5.7.22.2

Thursday, August 04, 2005 4:49 PM by Rama
Ajax.NET version 5.7.22.2 is awe-inspiring.

Great Job Michael.

I did have issues with server.transfer but 22.2 helped me a lot, thanks again.


Keep up the good work.

# re: Ajax.NET version 5.7.22.2

Wednesday, August 10, 2005 5:06 AM by Ajith
Hi Michael,
Can I use Ajax.Net Library for my Web Product, which will be deployed in others machines also. Is there any Licence Issues.
Please Reply.
Thanks
Ajith