Opening and configuring the web project (ASPX)

Open your Kentico web project in Visual Studio. Use the WebSite.sln or WebApp.sln file in the website installation directory ( c:\inetpub\wwwroot\Kentico by default).

Adding Kentico controls to the Visual Studio Toolbox

To make it easier to work with Kentico components on your ASPX pages, add the built-in set of controls to your Visual Studio Toolbox.

  1. Edit any ASPX web form file, for example Default.aspx under the project root. This is necessary, because the toolbox only offers the controls when working with ASPX markup.
  2. Right-click the Toolbox and choose Add Tab.
  3. Type the name of the new tab (for example Kentico) and press Enter.
  4. Right-click the new tab and select Choose Items.
  5. Click Browse on the .NET Framework Components tab of the Choose Toolbox Items dialog.
  6. Navigate to the CMS\bin folder under your website.
  7. Select the CMS.Controls.dll library.
  8. Click Open and then OK.

The controls are now added to the Toolbox. You can drag and drop the controls onto your Web forms.