| |||||
Adding Button Controls to a Web Forms PageControls You Can Use on Web Forms ASP.NET Standard Controls Button Controls Adding buttons to a page is a simple process. To add a Button Web server control to a Web Forms page
<asp:button text="Click Me" onClick="doSomething" runat="server" />
Because buttons execute commands, it can be useful to specify an access key for a button. Users can then press ALT plus the access key to choose the button. Note, though, that access keys are not supported in all browsers. To define a button access key
<asp:button text="Click Me" accessKey="c" onClick="doSomething" runat="server" />
Adding an ImageButton control is slightly more involved that working with other button types. See Creating Graphical Button Controls. See AlsoSetting Web Server Control Properties Programmatically Responding to Button Control Events |
| ||||
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