| |||||
Creating Graphical Button ControlsControls You Can Use on Web Forms ASP.NET Standard Controls Button Controls An ImageButton control allows you to present a graphic as a clickable control. To create a graphical button
<asp:ImageButton runat="server" ImageUrl="myPic.jpg" onClick="doSomething" /> The following sample illustrates using the ImageButton control.
The ImageUrl property can also be bound to a data source to display graphics based on database information, as when an ImageButton control is used within templated controls such as a DataGrid, DataList, GridView, FormView or Repeater. The below example demonstrates how to assign a value to the ImageUrl property based on database information.
See AlsoDetermining Coordinates In an ImageButton Control ImageButton Control Syntax |
| ||||
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