Back to Devexpress

ASPxClientButton.SetImageUrl(value) Method

aspnet-js-aspxclientbutton-dot-setimageurl-x28-value-x29.md

latest996 B
Original Source

ASPxClientButton.SetImageUrl(value) Method

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

Declaration

ts
SetImageUrl(
    value: string
): void

Parameters

NameTypeDescription
valuestring

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

Image

GetImageUrl

ASPxClientButton Class

ASPxClientButton Members