System.Web.UI.WebControls Namespace CommandField Class
.NET Framework version 2.0
Sets or retrieves the caption to display for the Update button in a CommandField.
Inline |
<asp:commandfield updatetext = strText ... > |
Script |
CommandField.UpdateText = strText |
strText |
String specifying the caption for the Update button in a CommandField. |
The property is read/write with no default value.
Use the UpdateText property to specify or determine the caption 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 Button or Link.
As an alternative to displaying text for an Update button, you can display an image by first setting the ButtonType property to Image and then setting the UpdateImageUrl property.
The following example demonstrates how to set the UpdateText property to display a custom caption for the Update button in a DetailsView control.
Show me
CommandField Members CancelText DeleteText EditText InsertText NewText SelectText