Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Button PostBackUrl Property

ASP.NET Button PostBackUrl Property


Button Control Button Control


Definition and Usage

The PostBackUrl property is used to get or set the URL of the page to which data is posted back when the Button control is clicked.

Syntax

/>

property Description
PostBackUrl A string value that specifies the URL of the page to which data is posted back. The default is an empty string, in which case the page posts back to itself.

Example

Example

The following example sets the postback URL of a Button control:

  Name:

  

  PostBackUrl="demo_postbackurl.aspx" runat="Server" />

Demo Example »


Button Control Button Control