asp.net.ph

CommandField.InsertText Property

System.Web.UI.WebControls Namespace   CommandField Class


.NET Framework version 2.0

Sets or retrieves the caption to display for the Insert button in a CommandField.

Syntax


Inline <asp:commandfield inserttext = strText ... >
Script CommandField.InsertText = strText

Property Value


strText String specifying the caption for the Insert button in a CommandField.

The property is read/write with no default value.

Remarks

Use the InsertText property to specify or determine the caption to display for the Insert 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 Insert button, you can display an image by first setting the ButtonType property to Image and then setting the InsertImageUrl property.

Example

The following example demonstrates how to set the InsertText property to display a custom caption for the Insert button in a DetailsView control.

 Show me 

See Also

CommandField Members   CancelText   DeleteText   EditText   NewText   SelectText   UpdateText Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph