Welcome to Michaels Blog

All posts tagged with label JavaScript

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


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


Internet Explorer 8 - Evaluators' Guide and IE8 Demo Site

image I found a nice document at Microsoft Download showing all the new features in Internet Explorer 8 [1] which is currently in beta:

Posted by Michael Schwarz on Wednesday, September 17, 2008


Browser War 2.0

logo_sm Yesterday Google announced [1] that they are working on a own Web browser. The first beta version will be available for Windows today in more than 100 countires, Mac and Linux versions are coming soon. An official starting point could be http://www.google.com/chrome [2] as it returns an http error 404 instead of a simple redirect to the Google search.

Posted by Michael Schwarz on Tuesday, September 2, 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 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


My own small .NET Micro Framework Web Server

While developing my small Ajax.NET M! library [1] for creating Web applications that run on the .NET Micro Framework [2] I have started to write my own Web server. Some years ago I wrote a simple SMTP/POP server [3] and using some code from there was a great help. The first version will only return static HTML pages e.g. for documentation or help files. As there is no file system on those devices I use the embedded resource strings to return the content.

Posted by Michael Schwarz on Thursday, March 6, 2008


Ajax.NET M! - The .NET Micro Framework AJAX Library

The embeddedworld2008 [1] is over and I had some time to play around with Microsoft .NET Micro Framework [2] devices. I can remember that I had a look on it during the first available betas on Microsoft Connect, but then stopped watching it because of the missing TCP/IP stack. The now available version 2.5 of the .NET Micro Framework [3] adds this directly in the framework. Other device manufactures have implemented their own TCP/IP stack, and such a device I have bought at the embeddedworld2008.

Posted by Michael Schwarz on Wednesday, March 5, 2008


LINQ to JSON

James has published a first beta of LINQ to JSON [1] support in his Json.NET library [2]. It looks very similar to my LINQ support in an internal build of Ajax.NET Professional [3] which never has been released.

Posted by Michael Schwarz on Tuesday, February 12, 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


Microsoft Download Center using Silverlight 1.0

Some weeks ago Microsoft already published a preview version of the Microsoft Download Center. Now, there is a new URL for the preview version (which is now called beta): http://www.microsoft.com/beta/downloads/ [1].

Posted by Michael Schwarz on Sunday, December 23, 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


Microsoft Silverlight 2.0 Wish List

silverlight Well, the year 2007 is nearly at the end and I have my short wish list for Microsoft Silverlight [1]. The following (maybe not complete) unsorted list would be nice to see in 2008 with the next CTP or final version:

Posted by Michael Schwarz on Thursday, December 20, 2007


MVC Web Application and JSON

I like the MVC (Model View Controller) framework which is available as a public CTP, now. You can download the latest bits with the ASP.NET 3.5 Extensions CTP Preview [1]. You will find further links at Scott Guthrie's posts tagged with MVC [2].

Posted by Michael Schwarz on Wednesday, December 19, 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


[de] Dodned Usergroup Nachtrag

Ich hatte gestern eine kurze Einführung zu jQuery gemacht, hier noch einmal die wichtigsten Links für Download und Dokumentation:

Posted by Michael Schwarz on Friday, November 30, 2007


[de] Dodned (.NET) Usergroup Franken 29.11.2007

Wer Web Anwendungen schreibt, der kommt um JavaScript nicht vorbei. Egal welche Web Server Controls man verwendet, wenn's am Client nicht mehr weitergeht oder etwas verbesser werden muss, ist JavaScript die Nummer 1. Auch die ganze AJAX Programmierung verwendet JavaScript am Client.

Posted by Michael Schwarz on Monday, November 26, 2007


PrettyPrint Fiddler2 Plugin (Alpha)

I put a first alpha version of the PrettyPrint Fiddler2 plugin [1] online. There are still some problems with regular expressions and lines that don't end with a semicolon, and some unknown maybe...

Posted by Michael Schwarz on Wednesday, August 1, 2007


Fiddler2 - JavaScript Beautifier Plugin

Update: download first alpha version of the PrettyPrint plugin for Fiddler2 [1].

Posted by Michael Schwarz on Wednesday, August 1, 2007


Upgrading your project to Silverlight Alpha 1.1 Refresh

Scott Hanselman [1] wrote on his blog about how to upgrade your project from Silverlight 1.1 Alpha to Alpha Refresh [2]. There are a couple of breaking changes in Silverlight 1.0 RC1 [3]. Because the 1.1 version does include the same core it will be necessary to change Silverlight Alpha 1.1 projects, too.

Posted by Michael Schwarz on Tuesday, July 31, 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


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


Throw new Exception with AjaxPro

Last Friday I had a discussion with Kris about some problems [1] he had with Ajax.NET Professional. The thing was that he was using Response.Write somewhere in his code to write exception details to the output, but that failed because the result was not a JSON response.

Posted by Michael Schwarz on Monday, July 30, 2007


[de] .NET User Group Franken am 5. Juli 2007

Die .NET User Group Franken [1] trifft sich mal wieder, diesmal in den Räumen der evosoft GmbH (Dank geht an Igor Milovanovic [2]).

Posted by Michael Schwarz on Wednesday, June 13, 2007


My Silverlight Weekend Summary

During the weekend I found several new examples about Silverlight [1]. Because I'm running several Web sites that need any kind of diagrams I was happy to see these nice examples from Richard: JellyBar [2], JellyGraph [3] and JellyPie [4].

Posted by Michael Schwarz on Monday, June 11, 2007


New Examples and Tutorials

During the last days I have added some new tutorials [1] and examples [2] to my list. Dave Campbell sent me a short message that he has already a kind of Silverlight examples collection. Have a look on his list of Silverlight tagged articles he wrote [3] and external Silverlight examples as well [4].

Posted by Michael Schwarz on Friday, June 8, 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


Microsoft Silverlight Introduction (LiveMeeting)

Tomorrow there is an online event for developers talking about Silverlight at 2:00 PM Eastern Time (US & Canada):

Posted by Michael Schwarz on Tuesday, June 5, 2007


Bubblemark Animation Test

Did you ever compared client-side RIA frameworks? Alexey Gavrilov [1] has written a great test to directly compare performance [2]: Silverlight (WPF/e) vs. DHTML vs. Flash (Flex) vs. WPF vs Apollo vs. Java (Swing):

Posted by Michael Schwarz on Tuesday, June 5, 2007


Silverlight Examples

During the weekend I spent some minutes to collect some of the greatest Silverlight [1] examples. Most of them need the Silverlight 1.1 alpha runtime which is available for download here [2].

Posted by Michael Schwarz on Monday, June 4, 2007


JavaScript and .NET Arrays in Silverlight

During my tests with the DLR (Dynamic Language Runtime) in Silverlight 1.1 [1] I came accross several things that didn't work first. Most of them could be fixed by using small workarounds.

Posted by Michael Schwarz on Friday, June 1, 2007


Call Scribtable Methods from JavaScript with Silverlight

Today I wrote a very simple example how to call a C# method from JavaScript code. I was using this because I'd like to access the IsolatedStorage with a small wrapper that is working similar to the registry.

Posted by Michael Schwarz on Friday, June 1, 2007


Silverlight 1.0 and OnLoad

There are some changes for the OnLoad event handler from older beta versions (code name WPF/E). In Silverlight 1.0 beta you will use following event handler, now:

Posted by Michael Schwarz on Friday, June 1, 2007


IsolatedStorage and managed JavaScript

Today I tried to use the IsolatedStorage in managed JavaScript with Silverlight 1.1 [1]. The IsolatedStorage can be used to store data on the client. Currently the alpha version supports 1MB, which is more than storing data in cookies, but maybe will be changed in the future. Perhaps there will be a setting in a future options dialog where you can specify how much you will allow to store locally.

Posted by Michael Schwarz on Thursday, May 31, 2007


DLR and Performance

The idea was to put all JavaScript libraries into the DLR of Silverlight to get better performance, but a first tests failed or is compared to JavaScript directly in the Web browser very slow.

Posted by Michael Schwarz on Thursday, May 31, 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


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 Live Labs - DeepFish Experience

Some weeks ago I installed the DeepFish Technology Preview [1] which will enhance existing mobile browsing technologies by displaying content in a view that is closer to the desktop experience. After installation was finished I was very anxious to see how it is working. I have several Windows mobile devices I can test. The first was a Qtek 9100 using a GSM Internet connection (9.600 baud, is my modem at home which I can use at no cost). Oh, what will the benefit be when using Deepfish compared with the built-in Internet Explorer?

Posted by Michael Schwarz on Wednesday, April 18, 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


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


New aghost.js JavaScript for WPF/E

In my last post [1] I wrote that there is a new aghost.js you need. The main reason is that the December CTP of the WPF/E plugin [2] is only running until end of January, so you have to update your plugin with the February version [1]. If you have installed the old version you will get following error message:

Posted by Michael Schwarz on Thursday, February 1, 2007


The February CTP Of WPF/E Is Live

Like Mark Harsh is writing on his blog [1] the new February CTP of WPF/E is live. Download the Windows [2] and the Mac [3] version, but keep in mind that there is a change in the aghost.js for the new version, see more details here and download the changed JavaScript file [4]. Joe Stegman is writing [5] about some changes:

Posted by Michael Schwarz on Thursday, February 1, 2007


The WPF/E Gear Keeps Turning

As you may have read on my blog I have added an animation to the gear example [1] from Mike Harsh. Now, the gear community is here! Read Bryant Likes's Blog [2] post about the gears:

Posted by Michael Schwarz on Friday, January 26, 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 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


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


Web Developer Tools

Taylor Hayward [1] has launched a new web site that will collect useful helpers for web developers, a lot of great examples and free icons or images, thePeoplesToolbox [2].

Posted by Michael Schwarz on Thursday, December 21, 2006


A short list of WPF/E exmaples

- Flash and WPF/E combined: http://thewpfblog.com/examples/wpfe/microbe/Default.html [1]

Posted by Michael Schwarz on Thursday, December 14, 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


POST vs. GET

I'm reading a lot of performance issues when using POST instead of GET in AJAX enabled web applications. What are the key benefits of each http method? And is POST really slower than GET?

Posted by Michael Schwarz on Monday, December 4, 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


The idea of UpdatePanels combined with JavaScript

I come across more and more web sites where JavaScript is used to get great user experience on the client-side. There are a couple of JavaScript frameworks written only to add animation effects to static html web pages. My favorite is the Yahoo! UI Library [1] and the great library yui-ext [2] (written by Jack Slocum [3]) that will extend the Yahoo! UI with common form elements like a dialog [4], a grid or layout panels.

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


Avoid using Impersonation in ASP.NET

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

Posted by Michael Schwarz on Tuesday, October 24, 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


AjaxPro for Java Developers?

I have started to create a AjaxPro Java Edition which will be 100% code compatible on the client-side. That means there is no change of JavaScript and HTML when moving around, no code change when developing JavaScript controls. Look at the following code:

Posted by Michael Schwarz on Wednesday, September 27, 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


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


AjaxPro, GPS, Windows Mobile 5 and Google Maps

While I was on a busines trip I started to write a small application that is using the Windows Mobile 5 GPS API to get the current location. After this I build a small web server that was running on the Windows Mobile device to offer a small web application that will show the current position on the Google Map, very funny application. I hope I can fix some bugs when there is no signal. The next step was to get a list of available wireless networks at the current location, added some pushpins to the Google map and... the result is a own map of wireless access points.

Posted by Michael Schwarz on Wednesday, August 23, 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


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


Why Ajax.NET Professional is using the __type property?

Ajax.NET Professional [1] is using attributes, there is no need to inherit from special pages or include dummy web controls to do all the job, there is no need to write special source code. Any .NET assembly can include classes with AjaxMethods that can be used in your ASP.NET web application.

Posted by Michael Schwarz on Friday, July 7, 2006


Work off-line with Ajax

In Internet Explorer (and all other common web browsers) you have an menu item File -> Work off-line. What does this do with you web application? Of course, it is working offline, no communication possible to the web server. When connected with a dial-up connection it can happen that this is done automatically if you disconnect from your internet service provider.

Posted by Michael Schwarz on Monday, July 3, 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


RSS feed available for Ajax.NET Professional Releases

I will start to publish new releases with an RSS feed in the next days. The URL for the RSS feed is http://www.ajaxpro.info/changes.xml [1] where you can see a first version of the latest changes already. The links for each release (post) is currently the same for each release. I will add links for each release to the Ajax.NET Professional Google group [2] threads that are talking about the changes for each version.

Posted by Michael Schwarz on Thursday, June 29, 2006


Why I hate Web 2.0/AJAX?

Posted by Michael Schwarz on Wednesday, June 21, 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


Ajax.NET Professional and Windows Mobile 5

Yesterday I put my new release online that will have support for Windows Mobile 5. The new release 6.6.12.1 is available at http://www.ajaxpro.info/ [1]. Because of the missing DHTML support I didn't changed all the examples that make heavy use of DHTML to work on Windows Mobile 5, too. So, the Ajax.NET Professional stuff is working..., that is great for me! One code, multiple web browser support!

Posted by Michael Schwarz on Tuesday, June 13, 2006


AJAX books promotion code: 25% off!

I have a promotion code that will give you 25% off for the two books Professional Ajax and Ajax For Dummies. Use the promotion code FCE on the online shop at http://www.wiley.com/go /computing [1].

Posted by Michael Schwarz on Friday, June 9, 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


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


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


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


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