Button ASP.NET Server Control

A button is used by nearly all user interface applications, and its function is the same across every application. A button lets a user choose an option, tell the application she is done with a task, or exit an application. The ASP.NET Button server control is no different. The Button control comes in three flavors:

  • Button— Renders as a typical HTML Button

    <Input Type"="Button"">

  • LinkButton— Renders as a hyperlink

  • ImageButton— Renders as an image for your Button

All three of the buttons do the same thing; they cause an HTML form to be submitted back to the server when it is clicked. However, ASP.NET adds an additional feature that enables you to call methods on the server on the post back. Later in this section, I'll ...

Get Programming Data-Driven Web Applications with ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.