An in depth guide to developing controls with the ASP.NET AJAX
Introduction
In my previous article, I have presented the AJAX Grid and a Generic Pager, which mimics the built-in GridView
control on the client side. In this part, I will provide details about developing Ajax Controls with the ASP.NET
AJAX
Framework.
Although the main goal of this article is to show you how to develop ASP.NET
AJAX
Controls with the ASP.NET
AJAX
Framework, it’s really worth to read this, even if you are only interested in ASP.NET
AJAX
Framework instead of developing controls.
Developing ASP.NET
AJAX
Control requires both client and server side knowledge of the ASP.NET
AJAX
Framework. Certainly, the client side requires more knowledge and coding compared to the server side. In this part I will cover both; let’s start with the client side.
Client Side
The real beauty of the Microsoft Ajax Library is that it extends JavaScript
’s object oriented model and provides an enhanced type system, which contains namespace
, class
, interface
, enum
, exception
, reflection
and other constructs that .NET developers are familiar with. If you are new to this enhanced type system or do not know how to create namespaces, classes, interfaces in ASP.NET
AJAX
following the prototype model, I recommend you to read Extending JavaScript with ASP.NET AJAX first before moving forward with this article.
Although the Ajax controls are inherited from Sys.UI.Control
, the heart of Ajax controls is the Sys.Component
class. This class mostly resembles the .NET Framework’s System.ComponentModel.Component
class. The following diagram will give you a good understanding of the inheritance chain related to Ajax control development.
(more…)
Read Full Post »