ImageControl Server Control

The ImageControl server control, when viewed on a Web form, displays an image stored within the Ektron Document Management feature. If you logs in and have permission to edit the image, you can right click the image and select Edit. This action displays a dialog box with which the user can update the image.

WARNING! Images are stored as assets using the Document Management feature. This control does not use the Ektron Library.

ImageControl server control properties

The following are Ektron-specific server control properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.

  • Authenticated (String)

    Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.

  • DefaultImageID (Long)

    The image asset’s content ID you want to display. If you don’t know the ID number of the asset, use the CMS Explorer to browse to it.

  • DoInitFill (Boolean)

    By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.

  • DynamicParameter (String)

    Gets or sets the QueryString parameter to read an image asset’s ID dynamically. To have the default image ID used, leave blank.

  • FolderID (Long)

    The ID of the folder where images are added. If you don’t know the ID number of the folder, use the CMS Explorer to browse to it.

  • Hide (Boolean)

    Hides or displays the output of the control in design time and run time.

    • True—Hide the control output.
    • False—Display the control output.
  • Language (Integer)

    Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).

  • SuppressWrapperTags (Boolean)

    Suppresses the output of the span/div tags around the control.

    • True—Suppress wrap tags.
    • False (default)—Allow wrap tags.
  • TaxonomyID (long)

    The ID of the taxonomy to which assets are added.

  • Title (String)

    Set the Image’s alt/title text. By default the image file name is used.

  • WrapTag (String)

    Lets a developer specify a server control’s tag.

    • Span (default)—designate an inline portion of an HTML document as a span element.
    • Div—apply attributes to a block of code.
    • Custom—Lets you use a custom tag.