You can assign a name to the image, that will be used to save the image when it is downloaded.
Complete the following steps to add a assign a name to the BinaryImage control.
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" />
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" | |
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.