ASP.NET LinkButton PostBackUrlProperty
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>
Name:<asp:TextBox id="TextBox1" runat=Server />
<asp:LinkButton id="Button1" Text="Submit"
PostBackUrl="demo_postbackurl.htmlx" runat="Server" />
</form>
Show example »
LinkButton Control Other Extensions