October 2010
Intermediate to advanced
1920 pages
73h 55m
English
By default, if you click a button control, the page containing the control is posted back to itself, and the same page is reloaded. However, you can use the PostBackUrl property to post form data to another page.
For example, the page in Listing 2.20 includes a search form. The Button control in the page posts the form to another page named ButtonSearchResults.aspx. The ButtonSearchResults.aspx page is contained in Listing 2.21.
Listing 2.20. ButtonSearch.aspx

Listing 2.21. ButtonSearchResults.aspx

In the Page_Load ...