---
title: "Quick Start in ASP.NET AJAX"
canonical: https://www.graphicsmill.com/docs/gm5/AjaxControlsQuickStart.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Quick Start in ASP.NET AJAX
 
This topic demonstrates how to get started with ASP.NET AJAX Controls of Aurigma Graphics Mill 5.5 for .NET. It provides step-by-step instructions how to create a simple web application which loads and displays an image.
 
## Prerequisites
  
In addition to system requirements applied to Graphics Mill for .NET, ASP.NET AJAX Controls require to have **ASP.NET 2.0 AJAX Extensions 1.0** to be installed. You can download it from [http://go.microsoft.com/fwlink/?LinkID=77296↗](http://go.microsoft.com/fwlink/?LinkID=77296).
 
**Note** 
ASP.NET AJAX Controls can work only with ASP.NET 2.0. You cannot use it with earlier versions of ASP.NET.
 
## Getting Started
  
1. In Visual Studio 2005 create new ASP.NET AJAX-Enabled Web Site (menu File -&gt; New Web Site...)
 
    ![Visual Studio Create New Web Site Dialog](https://www.graphicsmill.com/docs/gm5/AjaxControlsQuickStart1.png)
2. Add [BitmapViewer](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_BitmapViewer.htm.md) AJAX control to the toolbox:

    - Right-click on the tab of toolbox where you want to add this control and select Choose Items....
    - Find the BitmapViewer in the .NET Framework Components tab.
    - If you cannot find this component, click Browse... and find the Aurigma.GraphicsMill.AjaxControls.dll assembly. Then click OK on both Open and Choose Toolbox Items dialogs.
 
        ![Visual Studio Choose Toolbox Items Dialog](https://www.graphicsmill.com/docs/gm5/AjaxControlsQuickStart2.png)
3. Open the necessary page (for example, Default.aspx) in the Design mode, then drag and drop the BitmapViewer control into the desired position.
 
    ![Visual Studio Form Designer](https://www.graphicsmill.com/docs/gm5/AjaxControlsQuickStart3.png)
4. Open the file which contains the code behind of this page (for example, Default.aspx.cs), and add the code which will load the sample image to the **Page\_Load** event handler:
 
```
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            BitmapViewer1.Bitmap.Load(Server.MapPath("cat.jpg"))
        End If
    End Sub
    ```
 
```csharp
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            BitmapViewer1.Bitmap.Load(Server.MapPath("cat.jpg"));
        }
    }
    ```
5. Run the application (menu Debug -&gt; Start Without Debugging or Ctrl+F5 shortcut). The page with the BitmapViewer control containing the image you specified on the last step will appear.
 
    ![Sample Application](https://www.graphicsmill.com/docs/gm5/AjaxControlsQuickStart4.png)
