v2.0 Note
With version 2.0, Integration via Inheritance, the most popular way to integrate Ajaxium v1.x into ASP.NET 1.x and ASP.NET 2.0 projects to make them AJAX-enabled, has become obsolete. However, the relevant information section is still available in our archive for those of users who continue to employ Ajaxium v1.x
Click here to open the article Integrating Ajaxium v1.5 with ASP.NET 1.x & ASP.NET 2.0 applications.
Integration Overview
Version 2.0 offers two methods to integrate Ajaxium into your ASP.NET project. If you prefer to use the designer - the integration via drag & drop is right for you - all you need is to drag the Ajaxium Processor from the toolbox and place it onto the page.
If you opt for the code approach (also called integration via aggregation) - you can integrate Ajaxium into your project by adding only one line to the Page_Load event handler.
Both methods provide absolutely the same functionality and performance, so it's entirely up to you to decide which method to choose.
Integration via Drag & Drop
In order to allow Ajaxium to capture incoming requests, put the following initialization statement into the Global application class (Global.asax file):
C# Visual Basicprotected void Application_OnBeginRequest(object sender, EventArgs e)
{
Ajaxium.Processor.Init(this);
}Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
Ajaxium.Processor.Init(Me)
End Sub
Your application is now ready to be AJAX-enabled. Just drag Ajaxium Processor from the toolbox onto each ASP.NET Page you want to be AJAX-ed, and you're done with that.
|
 |
Integration via Aggregation
In order to allow Ajaxium to capture incoming requests, put the following initialization statement into the Global application class (Global.asax file):
C# Visual Basicprotected void Application_OnBeginRequest(object sender, EventArgs e)
{
Ajaxium.Processor.Init(this);
}Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
Ajaxium.Processor.Init(Me)
End Sub
Your application is now ready to be AJAX-enabled. Now you have to add just the same line to the OnLoad method of the Page class as follows:
C# Visual Basicprotected void Page_Load(object sender, EventArgs e)
{
Ajaxium.Processor.Init(this);
}Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Ajaxium.Processor.Init(Me)
End Sub
and you're done with it.