CodeCharge Studio All ASP PHP Perl ColdFusion Java C#.NET VB.NET

Image Control Reference

Design-Time Properties

Property Description
Name The name of the control.
Visible Specify whether the control should be displayed or not.
Control Source Type The type of data source that will provide data for the control: Database Column, Code Expression.
Control Source Specify the source of data for the control e.g. the name of a database column.
Data Type The type of data that will be contained in the control.
Format Depending on the Data Type property, select the format of the data that will be contained in the control.
Default Value Specify a default value to be used for the control if no value is otherwise specified.
DBFormat Specify the format in which you want the control value to be entered into the database.

Events

Event Description
Server Side Events
BeforeShow Occurs before the control is rendered to the page. By placing code in this event, the user can alter the URL of the image or hide the control.

Run-Time Properties (ASP)

Property Description
Value Specifies the location of the image.
Visible Specifies whether the image is visible. Setting this property to false will prevent the object from being displayed (however the image icon will remain in the generated page)

Run-Time Properties (PHP)

Property Description
ComponentType Specifies type of an object, such as "TextBox", "Record", etc.
Parent Specifies parent container of an object, for example a record form for a textbox that is included within that form.
Visible Specifies whether the component is to be shown or not.

Run-Time Properties (.NET)

Interface The System.Web.UI.WebControls.Image is used
Property Description
Visible Indicates whether the control is rendered on the page or not.
ImageUrl Gets or sets a image url. See .NET Framework SDK reference.

Model Layer

Property Description
<control name> Contains current value of control.

Methods (PHP)

Method Description
GetValue Retrieves the value of the Image control (the URL of the image).
SetValue Sets the value of the Image control (the URL of the image).

Run-Time Variables (CF,CFT)

Variable Description
fld<control name> Specifies the location of the image.
hide<control name> Specifies whether the image is visible. If the variable is not defined or its value is false then the components is visible, if the value is true then the component is not visible. By default this variable is not defined, i.e. the component is visible. Setting this variable to true will prevent the object from being displayed (however the image icon will remain in the generated page)

Methods (Servlets & JSP)

MethodDescription
getPage Get the page that contains this control.
getFormattedValue Get the value formatted according to the control format.
setFormattedValue Use a String to set the control value. The value is taken as is i.e. formatting will not be applied to this value.
getValue Retrieves the value of the control without any formatting applied to it.
setValue This method sets the value of the control.
hasErrors Indicates whether the control has (validation) errors.
addError Add an error description to the errors collection.
getErrorsAsString Return a single String with all the error messages separated by &lt;br&gt; tags.
isVisible Indicates whether this control should be shown or not.
setVisible Specify whether this control or component should be shown or not.
getParent Get the parent component that contains this control or component.

See also

Image Overview


On-line, printable versions and updates