Latest web development tutorials

ASP.NET LinkButton Text property

LinkButton control LinkButton control

Definition and Usage

Text property sets or returns the text LinkButton controls.

Note: the control's appearance is similar HyperLink control, but its function and Button controls same.

grammar

<asp:LinkButton Text="string" runat="server" />
属性 描述
string 字符串值。规定 LinkButton 控件上的文本。


Examples

The following example sets the text LinkButton controls on:

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

The demonstration >>

LinkButton control LinkButton control