This is a quick tutorial on how to add the Ektron server controls to the toolbox of Visual Studio.
- Open your Ektron project in Microsoft Visual Studio (by clicking file open website choose the site root folder)
- Open the VS Toolbox.
- Add a tab and give it a name like Standard Ektron Controls
- Right click and select Choose Items... .
- Click Browse .
- Choose
site root/bin/ Ektron.Cms.Controls.dll
- Click OK .
- The controls appear on the Toolbox tab.
- Repeat the sames steps to add:
- Ektron UI Controls - Ektron.Cms.Framework.UI.Controls.EktronUI.dll
- Ektron Templated Server Controls - Ektron.Cms.Framework.UI.Controls.dll
Should look like:
To add the controls register statements are needed at the top of the .aspx page. For example:
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls" namespace="Ektron.Cms.Framework.UI.Controls" tagprefix="ektron" %>
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls.EktronUI" namespace="Ektron.Cms.Framework.UI.Controls.EktronUI" tagprefix="ektronUI" %>
You can modify the tagprefix value to something different. Make sure that the controls reflect what the tagprefix shows.
e.g.
<ektronUI:DateField ID="DateField1" runat="server"></ektronUI:DateField>
Notice how the control's prefix matches the registration tagprefix value. If they do not match you will see errors like the following.
Unknown server tag
Please sign in to leave a comment.