Welcome to Michaels Blog

All posts tagged with label ASP.NET

Blog of latest news, updates, and stories for developers

Quick thoughts on the Microsoft AJAX CDN

Today reading on idunno.org [1] about Microsoft AJAX CDN, something I was thinking about a bit, too:

Posted by Michael Schwarz on Wednesday, September 16, 2009


Results of AJAX Statistic for .NET Development

Simone [1] has created another survey [2] concerning AJAX usage with ASP.NET. The results are available, now, and it is really interesting to see that there are only small changes in the use of AJAX libraries for ASP.NET developers.

Posted by Michael Schwarz on Tuesday, June 23, 2009


Congratulations 2009 Microsoft MVP!

Wishing all a Happy New Year 2009! Today I have received a congratulation mail from Microsoft telling me that I have been nominated another year the Microsoft Most Valuable Professional [1] (MVP) award in ASP.NET Development. I’m very happy about this mail and my fourth year being a MVP.

Posted by Michael Schwarz on Thursday, January 1, 2009


AppCmd Migrate Config and Remove HttpModules

In some of my Web projects I’m using the <remove name="..."/> [1] tag in web.config section system.web/httpModules. When you’re using the appcmd migrate config command not all removed httpModule configurations are copied to the new section below system.webServer.

Posted by Michael Schwarz on Tuesday, November 18, 2008


Encrypt your AJAX traffic using Microsoft Silverlight and Ajax.NET Professional

Some of you maybe remember that I had added some security related features in Ajax.NET Professional [1]. It is possible to put an AJAX token or to simple encrypt the data that gets over the lines. With Silverlight [2] we get the System.Security.Cryptography namespace on the client – before it was not very easy to encrypt a string without any plug-in (well, there are some implementations of Blowfish available in JavaScript [3]).

Posted by Michael Schwarz on Thursday, November 13, 2008


Really Cool Internet Explorer 6 – But how will it perform on 400 MHz?

I have downloaded the new emulator images [1] and I’m really impressed that the IE6 render engine [2] really fits in such a small device. I have created some screenshots below.

Posted by Michael Schwarz on Wednesday, November 12, 2008


AppCmd Migrate Config and HTTP Error 500.22

Yesterday I tried to migrate an Web Application from IIS 6 to IIS 7 integrated managed pipeline mode. After copying the files to the new folder I opened a Web browser and got following error message:

Posted by Michael Schwarz on Friday, November 7, 2008


ASP.NET Memory Issues

Tess Ferrandez [1] who is an escalation engineer in product support services (PSS) at Microsoft was helping a colleague out with an OOM (OutOfMemory) situation he was dealing with. The problem [2] was that their applications memory usage would grow over time until they finally ended up with an out of memory exception. They used an older version of my Ajax.NET Professional library [3]. The bug has been noticed [4] on April 14th in 2006 and fixed some days later.

Posted by Michael Schwarz on Friday, September 12, 2008


TODO: Internet Explorer 8

I will collect some of my thoughts about the current beta 2 of Internet Explorer 8 [1] I have noticed during IE8 community roundtable [2] last week:

Posted by Michael Schwarz on Monday, September 1, 2008


Internet Explorer 8 Home and Ultimate

Last Friday Microsoft meet around 20 Web developers, blogger and community experts at a community roundtable for Internet Explorer 8 [1] in Berlin. The main focus was on how private/business consumers as well as Web developers are using (or want to use) Internet Explorer 8. An analyst from Techconsult [2] explained the current situation in German browser market:

Posted by Michael Schwarz on Monday, September 1, 2008


Internet Explorer 8 and Maximum Concurrent Connections

As defined in 1999 (RFC 2616 [1]) "clients that use persistent connections should limit the number of simultaneous connections that they maintain to a given server. A single-user client SHOULD NOT maintain more than 2 connections with any server or proxy. A proxy SHOULD use up to 2N connections to another server or proxy, where N is the number of simultaneously active users. These guidelines are intended to improve HTTP response times and avoid congestion."* Since developers are using AJAX or AJAX-like requests to update a Web page the http limits are discussed [2] more [3] and more [4].

Posted by Michael Schwarz on Monday, July 21, 2008


Internet Explorer 8 Expert Chat Zone Resume

Internet Explorer 8 [1] is in beta and we're able to improve features that we need. Last week I sent a short message to the Microsoft DPE here in Germany with some comments what I like more in Firefox 3 [2] than in Internet Explorer. Well, there are a couple of great features like the star-it function to easily bookmark a Web page. Another great feature in Firefox 3 is that you are able to input any part of a visited URL or parts of the title that a visited page was using i.e. when you want to open Google Analytics you only have to enter "analy" and select the URL below, really clever.

Posted by Michael Schwarz on Thursday, July 17, 2008


ASP.NET MVC Source Code at Codeplex

Today Microsoft published the source code of ASP.NET MVC Framework [1] at Codeplex:

Posted by Michael Schwarz on Friday, March 21, 2008


How to... use Class Libraries with ASP.NET AJAX like AjaxPro

Using Ajax.NET Professional [1] (AjaxPro) you are able to put you AJAX methods wherever you want, if inside the Page class itself, any .NET class in the same project or as a reference class library. To generate the AJAX client-side JavaScript proxies the AjaxPro library checks for all public methods inside a specified type that are marked with the [AjaxMethod] attribute. The only thing you have to add to the Page class (in the Page_Load event) is the call to AjaxPro.Utility.RegisterTypeForAjax(typeof(ClassName)).WebApplication1 - Microsoft Visual Studio

Posted by Michael Schwarz on Wednesday, January 9, 2008


How to... move from AjaxPro to ASP.NET AJAX PageMethods

In one of my last posts I blogged about the future [1] of Ajax.NET Professional [2] (AjaxPro) and that I'm not able to do further development on that project. A  lot of my readers feeling sad about this but I had to concentrate more on new technologies that will revolutionize web application development.

Posted by Michael Schwarz on Tuesday, January 8, 2008


Future of Ajax.NET Professional

I'm happy to see that Ajax.NET Professional is used about 13.3% when using .NET related web applications [1]. Starting with my first post Using a HttpHandler and Attributes to call C# methods in JavaScript [2] in February 2005 the AJAX hype started around the world. Two months later I renamed the project to Ajax.NET [3] and added nearly all features that are the most used until today. In May 2005 Windows Mobile support [4] has been added and Ajax.NET was the only .NET framework that was able to run AJAX requests on mobile devices. In the end of 2005 I was invited to the PDC 05 in Los Angeles where I could meet Brian Goldfarb [5] and Jonathan Hawkins [6] to see how Microsoft is working on AJAX in ASP.NET (Atlas) [7]. I meet some other .NET developers and had great ideas on how AJAX will change web applications. In October I published a new product called Ajax.NET Professional [8] which was doing the same but contains several other security features. Because of a change in the JavaScript source I changed the name from Ajax.NET.

Posted by Michael Schwarz on Friday, January 4, 2008


Volta - Microsoft Live Labs

Volta - Microsoft Live LabsOn December 5th last year Microsoft Live Labs announced the Volta technology preview [1], a developer toolset for building multi-tier web applications using existing and familiar tools, techniques and patterns. You architect and built your application as a .NET client application, assigning the portions of the application that run on the server tier and client tier late in the development process. You can target either web browsers or the CLR as clients and Volta handles the complexities of tier-splitting. The compiler creates cross-browser JavaScript for the client tier, web services for the server tier, and all communication, serialization, synchronization, security, and other boilerplate code to tie the tiers together. In effect, Volta offers a best-effort experience i n multiple environments without requiring tailoring of the application.

Posted by Michael Schwarz on Thursday, January 3, 2008


[MVP] Congratulations! You have received the Microsoft MVP Award

Wow, another gift I got from Microsoft today:Michael Schwart - MVP

Posted by Michael Schwarz on Tuesday, January 1, 2008


Microsoft Silverlight 2.0 Wish List (part 2)

I got a lot of feedback for my last post about Silverlight features that are currently missing [1]. Because it is Christmas time we are allowed to wish everything we want, what we get is another thing. Here are some additional features currently missing and are maybe important for everyone.

Posted by Michael Schwarz on Friday, December 21, 2007


.NET AJAX Survey Results

Simone [1] has finished the survey and published the results of the survey about the usage of AJAX among .NET web developers [2]. The results are very interesting. The most used AJAX toolkit is ASP.NET AJAX [3] with about 73.7% followed by the AJAX Control Toolkit [4] which is used by almost half of the .NET developers that are using AJAX.

Posted by Michael Schwarz on Friday, December 21, 2007


Ajax View: Remotely Monitoring Web 2.0 Applications

I'm using Ajax View [1] more and more and find it very useful.

Posted by Michael Schwarz on Thursday, December 20, 2007


Ajax usage among .NET developers

Simone Chiaretta [1] had a look at the results of Ajaxian's survey [2] about the state of the usage in the Web development community. He decided to make a new survey [3], but this time only focused on .NET developers.

Posted by Michael Schwarz on Wednesday, December 19, 2007


MSDN Webcast: Silverlight 1.0 Overview

Rob Bagby [1], MSDN Developer Evangelist, will present Silverlight [2] 1.0 on Wednesday, 15th August at 11:00 AM Pacific Time (US & Canada).

Posted by Michael Schwarz on Tuesday, August 14, 2007


SwirlChat Module v2 (for DNN)

swirlhost [1] has released their new chat module [2] that is designed specifically for DotNetNuke [3]:

Posted by Michael Schwarz on Monday, July 30, 2007


ASP.NET AJAX Roles and Security

David Barkol [1] writes on his blog about ASP.NET AJAX Role Application Service with Visual Studio 2008 (Orcas). [2] Well, it is a new service that is working similar to the profile [3] and authentication [4] service. As it is very easy to call it from the client-side JavaScript code you should be a little bit more careful using these new methods.

Posted by Michael Schwarz on Monday, July 30, 2007


[de] Kostenfreier Silverlight Workshop in Erlangen

Nachdem wir den ersten Workshop kurzfristig absagen mussten haben wir einen neuen Termin in Erlangen bei der the campus [1] am 9. August, ab 18 Uhr. Wir haben einen Raum, PCs, Kaffee und Kuchen! Anmeldungen über die neu angelegte Google Group NET-Workshops [2].

Posted by Michael Schwarz on Monday, July 30, 2007


New Silverlight Links

The last weeks I was a little bit busy because of some projects and other work I had to do at home. But today I will publish some new links about Silverlight:

Posted by Michael Schwarz on Monday, July 30, 2007


Authentication and Session

In my current project I'm using a own User object that I store in the HttpContext.Session to have personalized data available without connecting on each AJAX method / page refresh to the database. If the session will end because of timeouts, Web server resets/crash or application pool recycle this data will not be available any more, I have to read all again and store it in the session.

Posted by Michael Schwarz on Monday, July 30, 2007


[de] Silverlight Get Together

(English: I will start new workshops about Ajax, ASP.NET and Silverlight in the next months, first will start on Thursday about Silverlight.)

Posted by Michael Schwarz on Monday, July 23, 2007


Silverlight Tutorials

There are a couple of great tutorials on how to developer Microsoft Silverlight [1] 1.0 or 1.1 Web applications:

Posted by Michael Schwarz on Wednesday, June 6, 2007


Running managed JavaScript in Silverlight

At MIX 07 Jim Hugunin announced a new level of support for dynamic languages on .NET that they're calling the DLR (Dynamic Language Runtime). With Silverlight 1.1 you get support for dynamic languages today: Phyton, JavaScript (EcmaScript 3.0), Visual Basic and Ruby.

Posted by Michael Schwarz on Thursday, May 31, 2007


Silverlight .NET Support

The Silverlight team has released a new version [1] today at the MIX with .NET support. Since Mike announced [2] this Web developers are waiting for this new feature.

Posted by Michael Schwarz on Monday, April 30, 2007


Orcas and JavaScript IntelliSense

I had a great discussion [1] with Bertrand [2] about the feature to have dynamically (Assembly Resources or on-the-fly created JavaScript files) added JavaScripts in IntelliSense available, too. Currently it is only possible to add JavaScript files by hand that are more or less static files, and ASP.NET AJAX does not come with plain JavaScript files, too, but it is working because ScriptManager is doing his job.

Posted by Michael Schwarz on Monday, April 30, 2007


webinale 07

I will be available for Microsoft Silverlight discussions at the [webinale 07 [1] conference in Ludwigsburg/Stuttgart to talk and discuss about the latest version of Silverlight presented at the Mix07 in Las Vegas. Of course, you can talk with me about Ajax.NET Professional, too.]

Posted by Michael Schwarz on Saturday, April 28, 2007


Visual Studio Orcas JavaScript IntelliSense

Bertrand [1] has a great post about JavaScript IntelliSense [2] with the next Visual Studio .NET code-name Orcas. I downloaded the bits to give it a try. Oh yes, it is working great when creating ASP.NET AJAX Web applications.

Posted by Michael Schwarz on Saturday, April 28, 2007


AjaxPro more JSON compliant

I put the next beta version online to test the new JSON converters. I have added a new web.config paramter which will bring JSON converters to render a different output.

Posted by Michael Schwarz on Monday, April 23, 2007


AjaxPro User Experience

DotNetSlackers [1] creator Sonu Kapoor writes [2] about Ajax.NET Professional [3]:

Posted by Michael Schwarz on Thursday, April 19, 2007


Rich Media Platform Comparison

I found a nice table which will show a comparison between Microsoft products and Flash/Flex:

Posted by Michael Schwarz on Thursday, April 19, 2007


Microsoft Silverlight

For all of you didn't noticed the name change of code name WPF/E, it is now Microsft Silverlight. Silverlight is a cross-browser, cross-platform plug-in for delivering the next generation of media experiences and rich interactive applications (RIAs) for the Web. Silverlight integrates with existing Web applications and, of course, almost all Web technologies you are already using like Ajax.NET Professional [1] or ASP.NET in common.

Posted by Michael Schwarz on Monday, April 16, 2007


Download AjaxPro Beta with jQuery Support

I forgot to put the beta version online that will support jQuery and json.js from http://www.json.org [1]. You can download the latest beta of the AjaxPro library at http://www.ajaxpro.info/download/jQueryAjaxPro.zip [2]. The download currently includes only the .NET 2.0 library including a Visual Studio .NET 2005 Web Site project.

Posted by Michael Schwarz on Sunday, April 15, 2007


AjaxPro and the jQuery JavaScript Provider

Because jQuery is a often used JavaScript framework I will have a provider available in the next release of Ajax.NET Professional [1] that will render only the wrapper JavaScript files in the jQuery [2] JavaScript code.

Posted by Michael Schwarz on Friday, April 13, 2007


Looking Forward to next AjaxPro Release

Some developers mentioned that it would be nice if Ajax.NET Professional [1] could be more JSON compliant to use with some JavaScript frameworks that are not using the eval statement. And, if you have a look at json.org [2] JSON message always have to be an object or array, not a string or boolean directly. Well, I absolutly see the need of these changes and I have done this already in a beta version which I will provide this evening.

Posted by Michael Schwarz on Friday, April 13, 2007


Tip #1 - Using AjaxPro.AjaxNoTypeUsage

If you want to hide name and assembly details of classes you return in your AjaxMethod simple add the AjaxPro.AjaxNoTypeUsage attribute as meta information:

Posted by Michael Schwarz on Thursday, April 12, 2007


Trackbacks, Who Is Linking You and where you should pay attention

Today I opened the turkish version of Google [1] and did a search for something I cannot remember. The thing was that I didn't hit enter, instead I clicked on the button Google'da Ara. What I noticed then was that the ' was not correct url encoded. Hm, nothing you have to care about. But after clicking on a link to a blog from the search results I found the same wrong url encoded url in the who is linking me section. While reading the page I had the idea to do some more testing with the apostrophe (or a quote).

Posted by Michael Schwarz on Wednesday, April 11, 2007


jQuery and Ajax.NET Professional (AjaxPro)

jQuery [1] is a fast, concise JavaScript library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript, but it can be only used on the client-side JavaScript code. That means you need a framework on the server-side code if you want to add Ajax interactions to your web pages.

Posted by Michael Schwarz on Tuesday, April 10, 2007


Intel Software Network Videos using AjaxPro

I talked today with a Intel developer and he showed me where the are using Ajax.NET Professional JSON Library [1]. The Intel Software Developer Network [2] has it's own video library where you can see great videos on several technologies Intel is offering with it's processors. We talked about why they are using AjaxPro and the answer (that I get more and more) is: "we are using Microsoft .NET Framework 1.1". I'm happy to see that the decission to support .NET 1.1 in all my releases was one of the biggest benefits you get when using AjaxPro. Well, Intel talked about using AjaxPro as AJAX library, too. So, maybe we will see more web applications from Intel next time.

Posted by Michael Schwarz on Saturday, April 7, 2007


JSON Hijacking and How Ajax.NET Professional (AjaxPro) Avoids these Attacks

There are a couple of web sites reporting about security issues that hackers can use to invoke AJAX methods or use the JSON output to get data from other web applications. Specificallly, these attacks use HTTP GET requests invoked via an HTML <script src=""> include element to circumvent the "same origin policy" enforced by browsers (which limits JavaScript objects like XmlHttpRequest to only calling URLs on the same domain that the page was loaded from), and then look for ways to exploit the JSON payload content. The use of HTTP POST is only working if you are in the same domain, which does not mean this is not a dangerous security issue if used in web sites where different users can access data (i.e. spaces.live.com, blogger.com,...); there it is very easy to run HTTP POST with XmlHttpRequest object in the same domain (see Google XSS bug [1]).

Posted by Michael Schwarz on Saturday, April 7, 2007


I've been Tagged: Five Things You Might Not Know About Me

I've been tagged by Albert [1], so here are 5 things to share about me:

Posted by Michael Schwarz on Saturday, January 27, 2007


Are we ready for AJAX?

I had a watch today on the webcast How Hackers Reverse Engineer and Exploit an Ajax Application [1]. There wasn't any new security issue as we already should know as AJAX or web application developers. Samples did show how to hack the AutoComplete.asmx web service (using ASP.NET AJAX [2]) which was used on a demo web application using SQL Injection.

Posted by Michael Schwarz on Thursday, January 25, 2007


How to surf the Internet more safely

In the past you may have heared about more and more security bugs on well-known web sites you use maybe more often a day. Below there are some tips you should have in mind when browsing:

Posted by Michael Schwarz on Tuesday, January 16, 2007


How do I hack a web site?

On next Tuesday I will talk at the .NET User Group in Munich / Germany [1] about following topics:

Posted by Michael Schwarz on Wednesday, January 10, 2007


Congratulations! You have received the Microsoft MVP Award 2007

All the things around Christmas and New Year's Eve are left, now, and starting this morning reading my mails I got a very surprising mail from Microsoft:

Posted by Michael Schwarz on Monday, January 1, 2007


Updated Version of WPF/E Pad

Mike Harsh [1] has updated his WPF/E Pad. The new version has the following changes:

Posted by Michael Schwarz on Friday, December 29, 2006


WPF/E Plugin Update: how does it work?

Today I had a look on how the WPF/E plugin will check if there is a new update available. Would it be in Windows Updates or is there any automatic update done?

Posted by Michael Schwarz on Monday, December 25, 2006


Merry Christmas and a Happy New Year!

I will say Thank You! for all your help and discussions I had this year! 2006 was a great year where AJAX became very important to web applications, AJAX, JavaScrippt, CSS and Web 2.0 are the most used terms we used for web development, and I'm happy to see more and more web sites using AJAX to improve usability.

Posted by Michael Schwarz on Friday, December 22, 2006


WPF/E VS2005 Template (ASP.NET Version)

I found a post [1] on Paul Glavichs [2] blog about the WPF/E Visual Studio .NET 2005 template:

Posted by Michael Schwarz on Thursday, December 7, 2006


Rules you need for Fiddler

From time to time I install Fiddler [1] on new PCs and everytime I have the same problem: which rules do I need to get most from Fiddler. Here are my top 5 rules [2] I use:

Posted by Michael Schwarz on Tuesday, December 5, 2006


IE6 and IE7 Running on a Single Machine

Brian is writing on his blog [1] that Microsoft offers a free Windows XP including Internet Explorer 6 as a VPC image to test web sites with IE6:

Posted by Michael Schwarz on Saturday, December 2, 2006


Syntax error: line 1 using Microsoft ASP.NET AJAX [part 2]

Last Friday I wrote about the problem [1] of atlasglob.axd on MSDN. Today I did several tests and found out that the Accept-Language is one of the problems there, and that is the reason why not everyone got this JavaScript error.

Posted by Michael Schwarz on Tuesday, November 28, 2006


Showcase of Sites Powered by ASP.NET AJAX

I had some time to have a look at the showcases of sites powered [1] by ASP.NET AJAX [2]. There are a couple of new web sites available that I didn't looked at. I started my Internet Explorer, Fiddler [3] and Ethereal [4] and captured everything I got. Here are my results:

Posted by Michael Schwarz on Tuesday, November 28, 2006


Syntax error: line 1 using Microsoft ASP.NET AJAX

I read the last post [1] from Rick Strahl [2] about IE 7 Script Errors. Yes, I found this already on some sites, too, so I started to find the real issue.

Posted by Michael Schwarz on Friday, November 24, 2006


The top 10 mistakes when using AJAX

The last months I found more and more web sites that make a heavy use of AJAX to be on the Web 2.0 train, but a lot of them are very strange because they are slower than before, you will get more errors and sometimes nothing does work (i.e. when running on a mobile device). Here are my top 10 mistakes when using AJAX (not depending which framework you want to use):

Posted by Michael Schwarz on Monday, November 20, 2006


Get your AjaxPro Web Application running on Mono (for Linux Dummies)

For all of us who are not familiar with Linux here is a short description how to get your ASP.NET web application using AjaxPro [1] running on Mono [2]. The Mono project offers a great VMware virtual machine (Suse) which you can download here [3]. There is a free VMware player [4] which you need if you don't have the VMware workstation.

Posted by Michael Schwarz on Friday, November 17, 2006


Where thumboo is already used?

My new started service for creating screenshots of any web page is used more and more. http://www.sharepointkicks.com/, http://www.dotnetkicks.com/ (those two sides only used it while WebSnapr was not working) and http://www.worldwidirectory.com/ [1] are using the thumbnail service to visualize outgoing links on their web site.

Posted by Michael Schwarz on Friday, October 27, 2006


How to create screenshots from web sites? thumboo.com is the answer!

From the idea of Juan Xavier of websnapr [1] I started yesterday to write my own screenshot capture engine, and it is working already very nice. I registered a new domain called thumboo [2] (thumbnails and a cool "oo" as it is in Google or whatever).

Posted by Michael Schwarz on Tuesday, October 24, 2006


Google Search for AjaxPro

Google offers a new search engine service that can be personalized. I have created a first test that will only return results for AjaxPro (hopefully):

Posted by Michael Schwarz on Tuesday, October 24, 2006


Avoid using Impersonation in ASP.NET

Scott Hanselman [1] is writing on his blog [2]:

Posted by Michael Schwarz on Tuesday, October 24, 2006


More MS Ajax Pain

Rick Strahl is writing about his experience about the new Atlas files:

Posted by Michael Schwarz on Tuesday, October 24, 2006


Who is linking me?

I added a new page where urls are listed that are linking to http://www.ajaxpro.info [1]. The web page is updated frequently and will show small captured screenshots. This service will be available for your web site and blog end of this week.

Posted by Michael Schwarz on Monday, October 23, 2006


Yahoo! JavaScript Library and AjaxPro

There are a lot of great JavaScript libraries available that are used be developers to add Ajax and Web 2.0 to their web sites. While AjaxPro [1] is optimized to run on all web browsers including Windows Mobile devices I got some requests on supporting the Yahoo! JavaScript libraries [2]. I have done some internal changes that will allow you do use the Yahoo! JavaScript files instead of the generated files from AjaxPro. Because there is no JSON parser in the Yahoo! lib I'm using the json.js written by Douglas Crockford [3]. But first have a look at the ASP.NET page (C#):

Posted by Michael Schwarz on Friday, October 6, 2006


Search.Live.Com. I want to like it, I really do... [Part 2]

I read the post [1] from Graig Gemmill and was thinking the same. When search.live.com has removed the beta logo I started several tests. Every test failed because I didn't get the results on the first page. Try to search for Ajax.NET (which is my Ajax library [2]) and you will get only results for the domain ajax.net. I think this is a very bad result when searching for my library. I'm happy that the domain owner added a link to my web site at the bottom of the page.

Posted by Michael Schwarz on Thursday, September 28, 2006


AjaxPro JSON serialization about three (3!!!) times faster

The weekend I had time to do some serialization performance changes. The new beta version that is available here [1] is about three times faster than the current release version [2]. I have done some changes to the IJavaScriptConverter interface (method Serialize) to support the StringBuilder like it was in earlier days with Ajax.NET (not AjaxPro). There are some more changes done to improve the serialization from .NET types to JSON.

Posted by Michael Schwarz on Monday, September 25, 2006


AjaxPro JSON Parser and Dates

Because there are a lot of developers using the stand-alone JSON parser (which is included in the release package of AjaxPro [1]) I decided today to serialize the .NET data type System.DateTime with the UniversalSortableDateTimePattern (yyyy'-'MM'-'dd HH':'mm':'ss'Z') as a simple string. You can use this string as input value, too, it will be parsed to an .NET System.DateTime.

Posted by Michael Schwarz on Friday, September 22, 2006


AjaxPro Release include VS Template now

As I mentioned already that new AjaxPro [1] releases will include a simple Visual Studio .NET 2005 template for C# and VB.NET. You can download the latest version 6.9.22.2 [2] including this file at the CodePlex project site [2].

Posted by Michael Schwarz on Friday, September 22, 2006


AjaxPro at Google Groups with more than 4.000 members

Today the Ajax.NET Professional Google group [1] has reach the 4.000 member border. I did a search for AJAX [2] for all the Google groups available and was very happy to see my group at the second top position. Only Google with the Google Web Toolkit hits this group with additional 500 more members.

Posted by Michael Schwarz on Thursday, September 21, 2006


Books: Ajax with ASP.NET

I read a nice post here [1] from Long Zheng who got two copies of the new book Ajax with ASP.NET [2] you can win, read his blog.

Posted by Michael Schwarz on Wednesday, September 20, 2006


C# and VB.NET Visual Studio .NET 2005 Template

I will add the VS.NET 2005 project templates for C# and VB.NET to the next releases, too. A current version is available at Google Groups - AjaxPro [1].

Posted by Michael Schwarz on Monday, September 18, 2006


How to prevent System.NotSupportedException: This method is either not marked with an AjaxMethod or is not available

The was a discussion at the Google group about the System.NotSupportedException after changing files in App_Code folder. As there is no static assmebly name for the App_Code folder it will generated on each "rebuild" a new name that will look like very strange. The name of the assembly is used for any AjaxPro call and this will be a problem when the name changes after sending the JavaScript wrapper to the client.

Posted by Michael Schwarz on Monday, September 18, 2006


AjaxPro Source Code available!!

Today I put the source code online at http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro [1]. New releases will be still uploaded to http://www.ajaxpro.info/ [2]. If you find any error, bug or problem please ask the community first at http://groups.google.com/group/ajaxpro/ [3]. There is a search box for all post that may help. Bugs that are not fixed in the Google group should be added to the issue tracker page at http://www.codeplex.com/WorkItem/List.aspx?ProjectName=AjaxPro [4].

Posted by Michael Schwarz on Wednesday, September 13, 2006


Moving Source Code to CodePlex.com

Today I will start with moving the source code to http://www.codeplex.com [1]. Hopefully it is done in some hours, during this time period I have stopped the download option on my web site.

Posted by Michael Schwarz on Monday, September 11, 2006


Albert Weinert will talk about Ajax.NET Professional in Cologne, Germany

Alber Weinert [1] is talking [2] about Ajax.NET Professional [3] (and details on JSON [4]) in Cologne, Germany:

Posted by Michael Schwarz on Wednesday, July 19, 2006


Why addNamespace(...) is removed?

I removed addNamespace because of the missing support on older web browsers or mobile devices. The problem is that addNamespace will add a new property to the window object. This is working great on all common web browsers. See the next lines to see how you can change addNamespace usage to get your JavaScript working on all web browsers.

Posted by Michael Schwarz on Tuesday, July 18, 2006


Download new JSON stand-alone library for Microsoft .NET 1.1/2.0

There is a new stand-alone version for JSON [1] serialization/deserialization library available for Microsoft .NET 1.1/2.0. The JSON parser is extracted from my Ajax.NET Professional [2] library and will be available in the download package in the future. Download the new version at http://www.ajaxpro.info/ [2] (see the new link for the stand-alone version).

Posted by Michael Schwarz on Monday, July 10, 2006


Serializing Objects as JSON using Atlas, JSON.NET and AjaxPro [Part 2]

As there was a little discussion [1] about serialization of .NET types and deserialization of these genereted JSON strings I have updated Ajax.NET Professional [2] (version 6.7.9.1) to allow parsing of new Date statements, too. You can use the JSON generated string to do a deserialization right after, now.

Posted by Michael Schwarz on Monday, July 10, 2006


AJAX Web Applications and Time Zones

Because I'm currently playing with a lot of AJAX frameworks I'm searching for the correct use of dates and times in web applications. Ajax.NET Professional [1] is using time zone indentifier to know from which time zone the request is comming from. See following server-side C# code:

Posted by Michael Schwarz on Friday, July 7, 2006


Serializing Objects as JSON using Atlas, JSON.NET and AjaxPro [Part 1]

I read the post from Scott Hanselman [1] today comparing the internal use of JSON de-/serializer from the Atlas framework [2] and Ajax.NET Professional [3].

Posted by Michael Schwarz on Wednesday, July 5, 2006


IE7 and no native XMLHttpRequest support

This weekend I had a deep look on the native XMLHttpRequest support with the new Internet Explorer version 7 which is still in beta. If you do a Google search for "native xmlhttp support ie [1]" you will read that everyone is happy with this native support. Yes, it is the first step to have XMLHttpRequest on every PC. Ajax developers have changed their JavaScript source code to support this new object, this is great!

Posted by Michael Schwarz on Monday, July 3, 2006


[DE] Dodned .NET Franken Usergroup Treffen

Dieter Föttinger schreibt auf seinem Blog [1] folgendes zu dem Usergroup Treffen [2] (INETA Usergroup Franken) gestern Abend:

Posted by Michael Schwarz on Thursday, June 29, 2006


Ajax and latency problems

I tried to get more information about the speed of AjaxPro calls on my web site. First of all I did a research on how the latency of internet connection will change the duration. For this I run a test for my web server at http://just-ping.com/ [1]. You will see that Nürnberg, Germany will be always the fastest because it is located near to my web servers location.

Posted by Michael Schwarz on Thursday, June 29, 2006


XML -> JSON Serialization

With the next release of Ajax.NET Professional you will be able to transform any XmlDocument or XmlNode into a JSON object. This is really cool because we have already a lot of xml documents in our web applications. Currently you have to write a custom class or struct where you have to fill the properties or public fields. Now, you simply call the JavaScriptUtil.GetIJavaScriptObjectFromXmlNode method to return a JavaScript object. At http://munich.schwarz-interactive.de/datatype.aspx [1] I have added a new test (Test 32) which will read the RSS from the Google group and display the title and last 10 posts.

Posted by Michael Schwarz on Monday, June 19, 2006


AJAX on I-Mate JASJAR, Smartphones and Opera Mini for Pocket PC

See following web browser user agents accessed my web site at http://www.ajaxpro.info/ [1], all are working with Ajax.NET Professional:

Posted by Michael Schwarz on Wednesday, June 14, 2006


Pocket PC 2003 Support

The new version 6.6.13.2 will support Pocket PC 2003 and Windows Mobile 5 devices including Smart Phones, too.

Posted by Michael Schwarz on Tuesday, June 13, 2006


Windows Mobile 5 and Ajax.NET Professional

I put an example online that will show the current beta version of Ajax.NET Professional. Try the page http://munich.schwarz-interactive.de/default.aspx [1] with your Windows Mobile 5 device. You will see two alerts, one showing the current time of the web server, the second one will return two properties of an PersonX object in a List<PersonX>. Would be nice to see if we get it running on older Pocket PCs, too.

Posted by Michael Schwarz on Friday, June 9, 2006


Ajax.NET Professional 6.6.2.2 with new Converters

I put the new version online, download the latest DLL at http://www.ajaxpro.info/ [1]. There are a lot of performance changes done, and the lib is now working perfect with the script.aculo.us effects. A not yet finished updated version of the Starter Kit is online, see http://munich.schwarz-interactive.de/ [2]. See the changes here:

Posted by Michael Schwarz on Friday, June 2, 2006


The Bitmap is back...!

Today I added the BitmapConverter.cs which will support returning a Bitmap directly from Ajax.NET Professional [1]. Attached to the Google groups thread [2] you will see what is working today (the Bitmap example is the method Test27). Of course, I didn't add all data types...  ;)

Posted by Michael Schwarz on Thursday, June 1, 2006


[INETA] Treffen der Stars in Franken - Dodned Live

Dodned Live: Treffen der Stars in der fränkischen Metropole ... Michael Schwarz mit Ajax.NET Professional [2], Daniel Zeiss mit ComfortASP.NET [3] und Oliver Scheer, Microsoft, mit Atlas Framework [4]. Voraussichtlich am 26.06.2006 (yup, WM-Spielfrei...). Buchverlosung wie üblich. Stay tuned for more ...

Posted by Michael Schwarz on Wednesday, May 31, 2006


Ajax.NET Professional Starter Kit will move to CodePlex

The new Starter Kit for Ajax.NET Professional [1] will move to a new location where everyone can help building great AJAX enabled web pages and controls. The new URL where you can post your bugs, feedback or whishes is http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxProStarterKit [2].

Posted by Michael Schwarz on Tuesday, May 23, 2006


Wiki Example using ProntoWiki

I have found a great wiki project on SourceForge called ProntoWiki [1]. The next days I will see where Ajax.NET Professional would fit best in this wiki project. You will find an updated version here: http://munich.schwarz-interactive.de/wiki.aspx?wiki=default [2]

Posted by Michael Schwarz on Sunday, May 21, 2006


Beta Starter Kit available online

I've started a new url where I put the beta Starter Kit online. It includes the AutoComplete [1], Security [2], Feedback [3] and Wiki [4] example (editor/p@ssw0rd). The default.aspx [5] is testing several data types. The next Starter Kit update will be available end of this month. During this time period I will collect feedback and new ideas to be added to the kit. The download will be available at http://www.ajaxpro.info/ [6].

Posted by Michael Schwarz on Thursday, May 18, 2006


AutoComplete or Suggest Control for Ajax.NET

I have a new demo at http://munich.schwarz-interactive.de/autocomplete.aspx [1] which will use a textbox and Ajax.NET Professional [2] to search for customer names (1st textbox) and then for the orders of this selected customer (2nd textbox).

Posted by Michael Schwarz on Thursday, May 18, 2006


Fiddler and Visual Studio built-in web server

There are some problems when using Fiddler [1] with the Visual Studio built-in web server. By default Fiddler is only changing the proxy settings for http and https. The problem is that Visual Studio will start a web server on a random port address which will not be captured using Fiddler. To fix this you start Fiddler and modify the proxy settings in Internet Explorer (or any other web browser): set proxy to 127.0.0.1 and port 8888 for all protocols, not only http and https. This will allow you to use the one and only debugging proxy.

Posted by Michael Schwarz on Thursday, May 18, 2006


Google vs Ajax.NET Professional

Today Google put the GWT (Google Web Toolkit [1]) online which includes several UI controls, but also the possibility to exchange data between server and client and back. While downloading the framework and watching the examples I found following page: Sharing objects between Java source and JavaScript [2]. Hm, if I compare the data types that are supported with Ajax.NET Professional [3] I feel happy. Since I added more .NET 2.0 support like generic Dictionary or Nullable types... I can use any code that I'm currently using, great. In the last weeks I removed a lot of old common ASP.NET postbacks to AJAX requests. Most features could easily replaced by adding only the AjaxMethod attribute, no other C# code had to be changed. On the client-side, of course, I had to write some JavaScript, but this you have to do everytime you are talking about Web 2.0 or AJAX.

Posted by Michael Schwarz on Wednesday, May 17, 2006


Web 2.0 Effects with Ajax.NET Professional

I have modified an example form the script.aculo.us [1] web site that is showing some effects for a shopping cart web application. The example is using a generic dictionary (Dictionary<string,int>) to store the article and count in a session variable. Note: you must use the latest version of Ajax.NET Professional [2] (6.5.17.1 or higher).

Posted by Michael Schwarz on Wednesday, May 17, 2006


Ajax.NET Professional working with IE 5.0!!

I'm glad to see that my Ajax.NET Professional [1] library (version 6.5.15.2 or higher) is working with Internet Explorer 5.0 and 5.5. Both versions are supporting requests using the ActiveX XmlHttpRequest object or (if ActiveXs are disabled) the IFrame proxy. I've started logging Ajax.NET requests on my demo site http://www.ajaxpro.info/ [1], and here is the statistic I got after collecting data for some days only (sorted by web browser agent):

Posted by Michael Schwarz on Monday, May 15, 2006


Why UpdateControls are dangerous (or: why Fiddler is a great tool)!

The next days I will have a deeper look into web sites that are using AJAX frameworks that will replace the typical postback used in ASP.NET.

Posted by Michael Schwarz on Sunday, May 14, 2006


Why live.com is slow...

Scott Isaac has posted an article some weeks ago why live.com [1] is slow or "What they learned building live.com [2]":

Posted by Michael Schwarz on Sunday, May 14, 2006


Why live.com is slow...

Scott Isaac has posted an article some weeks ago why live.com [1] is slow or "What they learned building live.com [2]":

Posted by Michael Schwarz on Sunday, May 14, 2006


Security and Ajax.NET Professional

I have written a short example about how to use web forms security with Ajax.NET Professional. The example (C# and VB.NET) is included in the latest version available at http://www.ajaxpro.info/ [1]. Discuss the security.aspx example at Google groups [2]. (Update: there are about 2.500 members reading and writing posts!!!)

Posted by Michael Schwarz on Friday, May 12, 2006


Ajax.NET Professional Starter Kit available (C#/Visual Basic .NET)

I got already a lot of feedback to build Starter Kits for Ajax.NET Professional [1]. Today I started to create an environment where I can simple build C# and Visual Basic .NET example web pages. The Starter Kit will be included in every release, now. The latest version 6.5.4.1 [1] includes this kit already. I will add more and more examples how to use Ajax.NET Professional in your web application, and everytime I will create C# AND Visual Basic.NET source code.

Posted by Michael Schwarz on Friday, May 5, 2006


Download latest Ajax.NET Professional 6.5.4.1

Download the latest Ajax.NET Professional [1] library and examples for free at http://www.ajaxpro.info/ [1]. Support and feedback welcome at the Google group [2].

Posted by Michael Schwarz on Wednesday, May 3, 2006


Download latest Ajax.NET Professional 6.4.28.1

Download the latest Ajax.NET Professional [1] library and examples for free at http://www.ajaxpro.info/ [1]. Support and feedback welcome at the Google group [2].

Posted by Michael Schwarz on Friday, April 28, 2006


Updated Ajax.NET Professional source code

To let others check changes made to the current release of Ajax.NET Professional [1] I have updated the source code that is available at http://www.ajaxpro.info/ [1]. If you find any bug or have other great ideas or changes please visit the Google group at http://groups.google.com/group/ajaxpro/ [2].

Posted by Michael Schwarz on Wednesday, April 19, 2006


App_Offline.htm and Ajax.NET Professional

I read the nice article about the App_Offline.htm on Scotts [1] blog [2]. If you are using Ajax.NET Professional [3] you can simply check in the callback function if there is any error. While the App_Offline.htm is placed in your web application you will get the res.error.status = 404. This indicates that the file you are trying to download (the request to your Ajax.NET method) could not be found. It would be nice to get a more AJAX enabled friendly error message while the web application is offline. In my local version I have added <!-- App_Offline.htm --> to my App_Offline.htm source which indicates the Ajax.NET Professional library to throw a different error event than http status 404. It would be nice if Microsoft would add such information to a http header like this:

Posted by Michael Schwarz on Tuesday, April 11, 2006


Download new Ajax.NET Professional version 6.4.11.1

Changes done for version 6.4.11.1:

Posted by Michael Schwarz on Tuesday, April 11, 2006


Removed Object.prototype.extend for third-party libraries

I have published a new beta versiont that will get rich of the Object.prototype.extend that is in conflict with several third-party libraries. Download the beta at http://schwarz-interactive.de/download/6.4.5.2-beta.zip [1] and if you have any feedback please use the thread in the Google group here [2].

Posted by Michael Schwarz on Wednesday, April 5, 2006


Cookieless Session running with Ajax.NET Professional (ASP.NET 1.1, fix for 2.0)

The problem why cookieless sessions are not working in ASP.NET 2.0 is very easy, there is a change how it works internal. I have already fixed the code that it will work with ASP.NET 2.0 as with the older version 1.1. Have a look on the new release version 6.4.5.1 (or higher) in the next minutes on my web site [1].

Posted by Michael Schwarz on Wednesday, April 5, 2006


Ajax.NET Professional, enums and global onError/onLoading events

The version 6.4.4.1 [1] has fixed the missing enum support, now. To register an enum for client-side JavaScript code you have to add following code (the old AjaxEnum attribute is not needed):

Posted by Michael Schwarz on Tuesday, April 4, 2006


Web Page Analyzer and overall traffic

I the last weeks I used Fiddler [1] to see what is sent over the lines on initial start of a web site and during the web application is running. You can simply mark more than on request line. On the right side you will then see in the Performance Statistics how many bytes are received from the client.

Posted by Michael Schwarz on Tuesday, April 4, 2006


Why is it hard to compare AJAX libraries?

Months ago I started several chats with a lot of AJAX developers, some are using my Ajax.NET Professional [1] library, others are working directly with the XMLHTTPRequest object. I had a look around and found that there are a lot of other libraries that are not working like my lib. The big difference is that they are using ASP.NET in the traditional way, drag&drop web controls on the page, add some event handlers and write two or three lines of code. With Ajax.NET Professional I completly remove the web controls from my mind. Some parts of my web sites are using web controls for initial display, but most of them are using about 95% JavaScript code.

Posted by Michael Schwarz on Monday, April 3, 2006


How to use a different file extension for Ajax.NET Professional

As a result of my last blogs [1], if you want to use a different file extension for the Ajax.NET Professional [2] JavaScript wrappers you can simply use ASPX or any other file extension. You only have to change your web.config file and tell the Ajax.NET Professional library to use that extension. I put an example project [3] in the Google group [4] that will use the ASPX file extension that is enabled by default for ASP.NET web applications.

Posted by Michael Schwarz on Monday, April 3, 2006


Download latest Ajax.NET Professional 6.4.3.2

Feel free to download the latest assemblies [1] for the .NET Framework 1.1 and 2.0 (ajaxpro.2.dll) from my web site. The example project download still includes the old version, don't forget to replace it with the newer release.

Posted by Michael Schwarz on Monday, April 3, 2006


Missing .ASHX Mapping will stop Ajax.NET running

Some web server hoster have removed the default .ASHX file extension mapping. Ajax.NET Professional (and the older library) will work using this mapping. Please ask your hosting company to add this file mapping for you, or if you have access to the IIS configuration go to your web site properties -> HomeDirectory.

Posted by Michael Schwarz on Monday, April 3, 2006


SQL Server 2005 and Ajax.NET Professional - RowNumber Example

I often want to display something like a DataGrid on my web sites with next and prev buttons to scroll through the complete table. Using SQL Server 2005 it is very easy to build such controls that are using the new RowNumber feature to get only a page of rows that are displayed on the page. If you click on next you will get the next n rows.

Posted by Michael Schwarz on Wednesday, March 15, 2006


Download your copy of the Ajax.NET Professional Source Code

The download of the Ajax.NET Professional [1] source code is available at http://www.ajaxpro.info/sourcecode.aspx [2]. Notice, that it is only the latest snapshot of my version to show my comments, and how I did it internal.

Posted by Michael Schwarz on Monday, February 20, 2006


Comparison of AJAX frameworks for ASP.NET

Daniel sent me his comparison of indirect AJAX programming frameworks for ASP.NET. As Ajax.NET [1] is a framework where you have to do JavaScript programming other frameworks allow you to use AJAX stuff simply by adding some configuration to you web.config or by inheriting from a special page class.

Posted by Michael Schwarz on Friday, February 3, 2006


I have received the Microsoft MVP Award

Congratulations and Welcome to the Microsoft® MVP Program! [...]*

Posted by Michael Schwarz on Thursday, January 5, 2006


Ajax.NET Professional Beta 5.11.24.1 available

I posted a new version to the Google group [1]. Attached you will find a beta version of the next version. I had to recode a lot of parts to get the queue working correct with 2 http connections. Now, if you add this assembly you have to be careful if you use inheritance from the AjaxPro.AjaxRequest. You have to inherit from AjaxPro.AjaxClass instead, now.

Posted by Michael Schwarz on Thursday, November 24, 2005


AutoComplete AJAX Control with Ajax.NET Professional

I have finished a more complex auto complete textbox you can use in you Ajax.NET Professional [1] web application. The control can be added on the server like other HtmlControls:

Posted by Michael Schwarz on Friday, November 11, 2005


AJAX problems for newbies

I have some items I learned about AJAX (or Ajax.NET Professional [1]) developer newbies:

Posted by Michael Schwarz on Wednesday, November 9, 2005


Ajax.NET Professional and the "missing" context

I had done a lot of changes to the JavaScript methods. With the new version I had removed the context that you could provide to have something like a "this" context.

Posted by Michael Schwarz on Tuesday, November 8, 2005


Using a Request Queue

I have added a simple feature that will enable queuing for Ajax.NET requests. You can enable the queue with following line: 

Posted by Michael Schwarz on Tuesday, November 8, 2005


More controls for Ajax.NET Professional

I get a lot of requests for new controls that are using Ajax.NET Professional [1]. Some don't want to use other controls, they are searching for the best (or right) way to develop such controls. I have added some examples already to my web site at http://www.schwarz-interactive.de/ [2]. Because AJAX controls and web sites have to be developed different to current web applications I will create some more examples.

Posted by Michael Schwarz on Saturday, November 5, 2005