Welcome to Michaels Blog

All posts tagged with label Source Code

Blog of latest news, updates, and stories for developers

Ajax.NET M! (mobile edition) cancelled

Some months ago I started to implement an Ajax.NET Professional version for .NET Compact and Micro Framework. Some weeks later I decided to build a library with several network related features and I’m now moving the Ajax.NET M! to this new project at CodePlex.

Posted by Michael Schwarz on Friday, February 13, 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

DNS, Zigbee, XBee, Web, SMTP and POP classes in my MSchwarz Toolkit for .NET Micro Framework

As I wrote [1] already some days ago I'm currently working on a library that will offer networking features that I'm missing in .NET Micro Framework. All features are first implemented in desktop .NET Framework 3.0 and then modified to fit the smaller .NET Micro Framework [2]. The Zigbee/XBee C# implementation [3] is already 60% finished, DNS resolver is finished for most common DNS queries.

Posted by Michael Schwarz on Monday, November 10, 2008

Microsoft .NET Framework ZigBee Library

prd-xbeepromoduleseries1_smI'm currently working on a ZigBee [1] (XBee) library written in C# for the Microsoft .NET Framework. I published a first demo project that will support already some of the most important API modes. You can download [2] this demo project, any feedback is welcome.

Posted by Michael Schwarz on Tuesday, October 28, 2008

The Future of .NET Reflector (from Lutz Roeder)

Red Gate [1] will be responsible for the future development [2] of .NET Reflector [3], the popular tool authored by Lutz Roeder [4]. I’m very happy to read that Red Gate will offer this tool for free to the community. Lutz did a great job and the feedback from developers around the world brings up this tool to the top 10 tools for .NET developers [5].

Posted by Michael Schwarz on Wednesday, August 20, 2008

Microsoft TCP/IP Stack on .NET Micro Framework Devices

More an more devices are ready for the Microsoft TCP/IP stack that is available with the .NET Micro Framework version 2.5 introduced at the EmbeddedWorld2008 in Nuremberg.

Posted by Michael Schwarz on Tuesday, April 15, 2008

Download Surface Demo including DeepZoom

Well, I forgot to publish the source code [1] of the changed Microsoft Surface Demo written for Silverlight 2 [2] beta 1. The original demo can be found at the Silverlight community gallery [3]. I have added the video support from my first Surface demo and a the new DeepZoom control that enables streamed zooming of high resolution files inside Silverlight control.

Posted by Michael Schwarz on Monday, March 24, 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

Surface Demo - Silverlight 2 Update and DeepZoom

Today I updated my Surface Demo [1] (original source from Silverlight examples [2]). Well, there are only some small changes since last beta 1.1. So I have added a DeepZoom [3] control (MultiScaleImage) to the demo [4]:

Posted by Michael Schwarz on Tuesday, March 18, 2008

Silverlight Socket Comments

During my experience with Silverlight 2 beta 1 [1] and the use of sockets I have collected some comments that may help you starting with sockets inside Silverlight:

Posted by Michael Schwarz on Monday, March 10, 2008

Wake-on-LAN from a .NET Micro Framework Device

Well, I love the easy development of embedded devices with the .NET Micro Framework. As the device I'm currently using is really small I tried to build a small Web site on it to start my private servers at home using Wake-on-LAN [1]. You'll find a lot of helper methods samples on the Internet but I couldn't find on source code that was working on the .NET Micro Framework. The problem is that there are too many missing methods or enum values.

Posted by Michael Schwarz on Sunday, March 9, 2008

Wrong DateTime on .NET Micro Framework Devices

Since embeddedworld2008 in Nuremberg I'm playing in my free time with the .NET Micro Framework [1] and the Digi Connect ME network device [2]. I've created a small Web server and ported the Ajax.NET Professional library to the really cool and small .NET framework.

Posted by Michael Schwarz on Sunday, March 9, 2008

Silverlight 2 and System.Net.Sockets.Socket

The new beta of Silverlight 2 [1] introduces Sockets. The security model enforced by the System.Net.Sockets namespace in Silverlight 2 allows for a connection only back to the site or host of origin. So Silverlight 2 applications will be allowed to connect only to the host from which they were downloaded.

Posted by Michael Schwarz on Friday, March 7, 2008


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

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

Nintendo Wii and Silverlight: Tracking Your Fingers

While writing my Silverlight wish list I found a very nice project. Johnny Ching Lee [1] is using the controller (Wiimote) of the Nintendo Wii to track fingers [2]. The controller does not need the Nintendo Wii [3] console, simple the controller and a bluetooth connection [4] is enough. Combining this project with WPF or Silverlight would be the answer of one of my wishes. (Well, I know what I will try during the holidays.)

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

Debug .NET Source Code

Scott Guthrie announced [1] some weeks ago that Microsoft will offer the source code of the .NET framework. The source code will be released under the Microsoft Reference License [2] (MS-RL) and includes all comments which is very useful.

Posted by Michael Schwarz on Wednesday, December 19, 2007

Object and Collection Initializers in VS.NET 2008

While working with the new Visual Studio .NET 2008 I'm using more and more the new features that are available in Visual Studio .NET and C# compile options. One of those features are object and collection initializers. I like it to write source code like following lines (I always have my JavaScript code in mind, which is sometimes very similar):

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

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

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

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] 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

Balder - 3D Engine for Silverlight

The source code of the 3D engine called Balder is available on CodePlex [1], now. The state of the source code is not 100% yet, but people can download it for now and have a look at how you could do a simple 3D engine.

Posted by Michael Schwarz on Wednesday, June 13, 2007

How to create Silverlight Applications with Notepad

You may have read my post about how you can build Silverlight Web applications with Visual Studio .NET 2005 [1] instead of using the next verison codename Orcas. Until this time I used always a Virtual PC which was sometimes a little bit slow.

Posted by Michael Schwarz on Tuesday, June 5, 2007

Silverlight Surface Demonstration (Video Support)

In one of my last posts [1] I wrote about the Silverlight Surface [2] demo of the "photo table". If you had a look on the live demo [3] you only see images, no video. I have added this because it is a very great idea to do it with Silverlight and the high media support inside.

Posted by Michael Schwarz on Monday, June 4, 2007

Silverlight with Visual Studio .NET 2005

Could Silverlight [1] 1.1 assemblies be generated with Visual Studio .NET 2005? Well, if you read the GetStarted [2] page of Silverlight you see only upcoming Visual Studio codename Orcas as development platform.

Posted by Michael Schwarz on Monday, June 4, 2007

Silverlight and JSON

Silverlight 1.1 [1] comes with an built-in JSON serializer which can serialize common data types like string, numbers and arrays. It includes a object serializer, too, I think it is nearly the same as in ASP.NET AJAX or Ajax.NET Professional.

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

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

Thumboo moved...!

Today my snapshot service Thumboo [1] has moved to Sonu Kapoor (owner of DotNetSlackers [2]). Sonu will add much more features and make it a really nice site for the community. If you are still interessted in the original source code write me a message and I will send you the C# source code.

Posted by Michael Schwarz on Thursday, January 11, 2007

Google Search for Source Code

Google offers a great way to search for source code: http://www.google.com/codesearch [1]. If you search for RegisterTypeForAjax [2] (which is the method to create the JavaScript proxies for AjaxPro [3]) you will find a lot of examples:

Posted by Michael Schwarz on Thursday, October 5, 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

Yahoo! Web Services Request and AjaxPro JSON Parser - I love it!

Yesterday night I build an example on how to use Yahoo! Web Services [1] with the AjaxPro JSON parser [2]. The example will call a Yahoo! Web Service with output type set to JSON (see http://developer.yahoo.com/common/json.html [3]). The response will be deserialized to an .NET structure using the AjaxPro JSON parser (from the stand-alone version or the build-in parser in Ajax.NET Professional).

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

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 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

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

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

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

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

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

Download Ajax.NET source code, now!

Update: Have a look at Ajax.NET Professional at http://www.ajaxpro.info/ [1]. The Web site of BorgWorX is not available any more.

Posted by Michael Schwarz on Thursday, August 11, 2005