LinkButton

The LinkButton control renders as a hyperlink in the page. However, it contains client-side script that causes the form to be posted back to the server. (You can create a true hyperlink by using the HyperLink.)

To add a LinkButton control to a page

  1. Drag the LinkButton control from the Toolbox panel to your page.

  2. Set properties for the control in the Tag Properties panel.

Common LinkButton Properties

Property Description

Text

The text that the user sees, styled as a hyperlink.

PostbackURL

By default, when a user clicks a LinkButton, the form is posted back to the server where the server code written for the page runs. You can change the PostbackURL property to have the form post to another URL, though.

Tooltip

The text that is displayed when the mouse pointer is over the control.

For a full description of all LinkButton control properties, see LinkButton Properties Cc295253.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.