DJ_Src

Updates

2009/6/8 The DJ v1.1.15 is release. click here to get the new download.

Introduction

jQuery is a lightweight open source JavaScript library (only 15kb in size) that in a relatively short span of time has become one of the most popular libraries on the web."write less do more" is a very good idea for our web developers.But when using it in ASP.NET something had happend...

Background

We has some challenge of using jQuery in ASP.NET as well.

So how i can "write less do more" ?! I write many code for using jQuery!

"Write less do more" at Server!

Against such a background.I build a lightweight framework for jQuery in ASP.NET named "DJ".

Design Goal

so the server control's code just like this:

using System;
using System.Web.UI;
using DNA.UI; //step1:Import the DNA JQuery UI Framework library
//step2:add the JQuery Attribute to your control class header
[JQuery(Assembly="jQuery",Name="lightbox",ScriptResources=new string[]
{"plugin.lightbox.js"})] public class LightBox:Control { //step3:add the JQueryOption Attribute to the property header [JQueryOption(Name = "fixedNavigation")] public bool FixedNavigation { get; set; } protected override void OnPreRender(EventArgs e) { //step4:Register the jQuery Control DNA.UI.ClientScriptManager.RegisterJQueryControl(this); base.OnPreRender(e); } }

It's great! just four steps i write the lightbox Server Control! so i write all widgets of jquery.ui in "DJ" so that you can use theme to build your asp.net application quick or you can using this framework to write your own jquery Server Controls!


See the difference between using pure jquery client script and DJ WebControl

if you want see more live demo of "DJ" you can visit my websitehttp://www.dotnetage.com and i put the lastest version source code on CodePlex

Resources

Live Demo:in v1.1.15 the Live Demo site is updates.Added more than 100 samples to show you how to using DJ in ASP.NET Applications.
QuickStart WiKi:QuickStart for the DJ Starter.
Community:The Community for DJ ,post your ideas to impove the DJ or anything about the DJ.
API References:The DJ library 's API References.