| ||||||||
ButtonField.ImageUrl PropertySystem.Web.UI.WebControls Namespace ButtonField Class .NET Framework version 2.0 Sets or retrieves the image to display for the buttons in a ButtonField. Syntax
Property Value
The property is read/write with no default value. RemarksUse the ImageUrl property to specify or determine the path to the image file to display for each button in a ButtonField control.
Alternatively, the ButtonField can be set to display different button images based on the values of a field in the data source bound to the parent control. To specify using a separate image file for each button in the column, programmatically set the ImageUrl property in the RowDataBound event of the parent control. ExampleThe following example demonstrates how to dynamically set the ImageUrl property to display different imagebuttons in a ButtonField column at run time.
See AlsoButtonField Members Adding Button Fields to a GridView Control |
| |||||||
Check out related books at Amazon
© 2000-2008 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 aspxtreme