ComponentOne BinaryImage for ASP.NET Web Forms
Explore Features / Image Settings / Saved Image Name
In This Topic
    Saved Image Name
    In This Topic

    You can assign a name to the image, that will be used to save the image when it is downloaded.

    Note: This property is effective only when setting ImageData property.

    In the Designer

    Complete the following steps to add a assign a name to the BinaryImage control.

    1. Right click the BinaryImage and select Properties.
    2. In the Properties Window that appears, set the SavedImageName property.

    In Source View

    Set the SavedImageName property within the <cc1:C1BinaryImage> tag, to add the image name in the BinaryImage control.

    <cc1:C1BinaryImage ID="C1BinaryImage1" runat="server" ImageUrl="~/C1.png" SavedImageName="ComponentOne" />

    In Code

    Add the following code to the Page_Load event, to set the image name in the BinaryImage control.

    To write code in C#

    C#
    Copy Code
    C1BinaryImage1.SavedImageName= "ComponentOne";

    To write code in Visual Basic

    Visual Basic
    Copy Code
    C1BinaryImage1.SavedImageName= "ComponentOne"

    What You've Accomplished

    When you run the project, right click the image and select Save Image As, the name 'ComponentOne' appears as the name of the image in the Save Image dialog box.