ASP.NET LinkButton TextProperties


LinkButton 控件LinkButton Control

Definition and Usage

The Text property is used to set or return the text on a LinkButton control.

Note:This control looks like the HyperLink control, but its functionality is the same as the Button control.

Syntax

<asp:LinkButton Text="string" runat="server" />
 
Properties Description
string A string value that specifies the text on the LinkButton control.


Example

The following example sets the text on the LinkButton control:

<form runat="server">
<asp:LinkButton id="lbt1" runat="server" Text="Submit" />
</form>

Show example »

LinkButton 控件LinkButton Control Other Extensions