ComponentOne BinaryImage for ASP.NET Web Forms
Explore Features / Add an External Image
In This Topic
    Add an External Image
    In This Topic

    Complete the following steps to add an external image to the BinaryImage control.

    In the Designer

    1. Select the BinaryImage control and click the smart tag   to open the BinaryImage Tasks Menu.
    2. Click the button   next to ImageUrl.          
    3. Set the URL of the image to be loaded in the ImageUrl property and click OK.

    In Source View

    Set the URL of the image in the ImageUrl property within the <cc1:C1BinaryImage> tag to add an external image to the BinaryImage control.

    <cc1:C1BinaryImage ID="C1BinaryImage1" runat="server" ImageUrl="http://www.componentone.com/newimages/Products/Visuals/se_theming.png"/>

    In Code

    Add the following code to the Page_Load event, to add an external image to the BinaryImage control:

    To write code in C#

    To write code in Visual Basic

    Visual Basic
    Copy Code
    C1BinaryImage1.ImageUrl = "http://www.componentone.com/newimages/Products/Visuals/se_theming.png"/"

    What You've Accomplished

    When you run the project, notice that the image appears in the BinaryImage control.