Skip to main content

ASPxClientButton.SetImageUrl(value) Method

Sets the URL pointing to the image displayed within the button.

Declaration

SetImageUrl(
    value: string
): void

Parameters

Name Type Description
value string

A string value that is the URL to the image displayed within the button.

Remarks

Use the SetImageUrl method to set the URL to the image displayed within the button on the client side. To get the image URL on the client side, use the ASPxClientButton.GetImageUrl method.

Note

If a button image is not initialized on the server side, the corresponding DOM element is not created. In this case, the SetImageUrl property is not in effect.

See Also