Open Source Draggable ASP.NET Controls

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 1.8 out of 5)
Loading ... Loading ...

14 months ago my wife went to China for a week and I found myself with a ton of spare time. So I did what any young, virile male living in Los Angeles would do - I stayed up until 3 am creating custom ASP.NET controls.

14 months ago the only .NET AJAX controls on the market were Dart’s PowerWEB LiveControls, which were pricey, so I figured anything I built dealing with AJAX would be popular. However, I knew the compexity of trying to implement an AJAX textbox, label or panel and, realizing I only had a few evenings on my hands, decided to look for a project I could complete in the time I had available.

During my research I stumbled upon Walter Zorn’s amazing open source DHTML API/Library for manipulating images and layers inside the browser. I quickly decided to wrap his API in a few custom ASP.NET controls, and the Draggable ASP.NET controls were born.

The easiest way to describe what the controls do is to send you to the live demos. Go check ‘em out and meet me back here.

Pretty cool, huh?

The controls are:

  • Cross-browser. Draggable ASP.NET controls are compatible with IE 4+, Firefox 0.6+, and Netscape 4+
  • Quick. Just drag and drop them on your web form and you’re good to go
  • Simple. They eliminate the need for complex JavaScript
  • Customizable. All properties are configurable at design or run-time, and full source code is available
  • Flexible. Make any control draggable by placing it inside a Draggable ASP.NET Panel
  • Server-side. Designate a Draggable ASP.NET control as a container and drag other controls into it, firing a server-side event

The Source Code
I wrote all code in .NET 1.1 but converted it to 2.0 last weekend. VS.NET 2005 gives a few warnings when compiling the controls because of methods that are now deprecated in 2.0, but everything compiles and works properly. This is release v0.9, but I plan to do a 1.0 release once someone has time to fix and test the compiler warnings.

Binaries Only
The installation package for the v0.9 binaries is available here. It includes an MSI, installation instructions and documentation.

Source Code
The source for the v0.9 Draggable controls is available here.

Examples
The source for the Draggable demos is available here. Note: Due to the hard-coded path to the javascript libraries you must run the demos in your web root.

The License
I’m releasing these controls under the Attribution 1.0 License. This means the controls can be used as you please, but you must give attribution. The controls may be modified and distributed in both commercial and non-commercial applications, but the attribution must be made clear in this distribution.

About Me: My name is Rob Walling and I'm a software developer living and working in Boston (as of July 1, 2008). I write about hiring, managing, and motivating software developers, in addition to random outbursts on improving development skills and software startups.

My consulting firm, The Numa Group, performs .NET development for clients throughout the United States. If you are in need of a .NET developer or architect, drop me a line.

If you'd like to subscribe via RSS, my feed is here. If you'd prefer to receive very occasional emails when I publish a major new article, use the box below. Cancel anytime.