Skip to main content
A newer version of this page is available. .
Tab

ASPxImage.ImageUrl Property

Gets or sets the URL pointing to the image displayed within the ASPxImage.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

[DefaultValue("")]
public string ImageUrl { get; set; }

Property Value

Type Default Description
String String.Empty

A System.String value specifying the URL representing the path to the image displayed within the ASPxImage.

Remarks

Use the ImageUrl property to specify an URL representing the path to the image displayed within the ASPxImage.

All graphic file formats which can be interpreted by internet browsers are supported. The image’s URL can represent either an absolute or relative path.

Example

The complete sample project is available in the DevExpress Code Central database at E1120.

...
function popupControl_Init(s, e) {
    //Synchronize the client variable's value with the confirm dialog checkbox' setting
    dontAskConfirmation = cbDontAsk.GetChecked();
}

function ShowPopup(rowId) {
    //Assign the row's ID value to a specific label within the confirmation dialog, 
    //show the dialog, and set focus to the Yes button
    lbRowId.SetText(rowId);
    popupControl.Show();
    btnYes.Focus();
}

function btnYes_Click(s, e) {
    ClosePopup(true);
}

function btnNo_Click(s, e) {
    ClosePopup(false);
}

function cbDontAsk_CheckedChanged(s, e){
    //Synchronize the client variable's value with the confirm dialog checkbox' 
    //setting, and focus the Yes button
    dontAskConfirmation = cbDontAsk.GetChecked();
    btnYes.Focus();
}
...

The following code snippets (auto-collected from DevExpress Examples) contain references to the ImageUrl property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also