ASP.NET LinkButton PostBackUrlProperty


LinkButton 控件LinkButton Control

Definition and Usage

The PostBackUrl property is used to get or set the URL of the target page to post back to when the LinkButton control is clicked.

Syntax

<asp:LinkButton PostBackUrl="string" runat="server" />

Property Description
string String value. Specifies the URL of the target page to post back to. The default is an empty string, which causes the page to post back to itself.


Example

The following example sets the postback URL of the LinkButton control:

<form runat="server">
  Name:<asp:TextBox id="TextBox1" runat=Server />
  <asp:LinkButton id="Button1" Text="Submit"
  PostBackUrl="demo_postbackurl.htmlx" runat="Server" />
</form>

Show example »

LinkButton 控件LinkButton Control Other Extensions