asp.net.ph

CommandField.UpdateImageUrl Property

System.Web.UI.WebControls Namespace   CommandField Class


.NET Framework version 2.0

Sets or retrieves the image to display for the Update button in a CommandField.

Syntax


Inline <asp:commandfield updateimageurl = strImageUrl ... >
Script CommandField.UpdateImageUrl = strImageUrl

Property Value


strUpdateImageUrl String specifying the path to the image file to display for the Update button in a CommandField.

The property is read/write with no default value.

Remarks

Use the UpdateImageUrl property to specify or determine the path to the image file to display for the Update button in a CommandField control.

NOTE: This property applies only when the ButtonType property of a CommandField is set to Image.

As an alternative to displaying an image for an Update button, you can display text by first setting the ButtonType property to Button or Link and then setting the UpdateText property.

Example

The following example demonstrates how to use the UpdateImageUrl property to display an Update image button in a DetailsView control.

 Show me 

See Also

CommandField Members   CancelImageUrl   DeleteImageUrl   EditImageUrl   InsertImageUrl   NewImageUrl   SelectImageUrl Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note