About/Contact

Steve Trefethen

Steve Trefethen is CTO at Wanderful Media.
Contact me

View my LinkedIn profile



Calendar

<<  May 2013  >>
MoTuWeThFrSaSu
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

View posts in large calendar

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.



An AJAX example in Delphi with ASP.NET using AJAX.NET Professional

March 13 2006 5:23PM

Back in January, I wrote this post about using the magicAJAX.net framework in Delphi to illustrate AJAX from a Delphi ASP.NET application. This month I've been looking at the AJAX.NET Professional framework written by Michael Schwarz and have converted his examples to Delphi for .NET using the 1.1 .NET framework although AJAX.NET Pro supports both 1.1 and 2.0 versions of .NET.

Once again I'm going to assume you'll be running this example from IIS. To get this example to work in Delphi for .NET you'll need to do the following:

  1. Grab the AJAX.NET Pro net download from here. All you're really going to need is the AjaxPro.dll assembly.
  2. Download the Delphi example source code here
  3. Unzip delphi_ajaxpro.zip into \inetpub\wwwroot (it contains a directory called DelphiAJAXDemo)
  4. Create a virtual directory under IIS and point it at the directory created above
  5. Under \inetpub\wwwroot\DelphiAJAXDemo create a directory called "bin"
  6. Unzip AjaxPro.dll from the download in step 1 into the bin directory created above
  7. Start the IDE and open DelphiAJAXDemo.bdsproj
  8. From the Project Manager right click References and select Add Reference and add AjaxPro.dll
  9. Compile and run the project, you should see a page that looks like this

NOTE: I intentionally converted this example as closely to the C# example as possible. I can't say that in all cases I would have written the same code but I felt the comparison between C# and Delphi was important enough to keep the code as similar as possible.

Tags:

Update:
I found a bug in the Class demo code where some data members were not being initialized. I've corrected the code and fixed the download with these latest changes.
Update #2:
I missed the file quickguide.aspx which is now included in the download.

Update #3: Fix blog tags for this entry

Update #4: This demo is now available online here.

FacebookDel.icio.usDigg It!

Tags: ,

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading