How to call an ASP. NET webpage:
Original request (http get)
HTTP POST)
Called by cross-page sending (http post) from other pages,
From other pages (Use Method or use the callback in the browser ).
Determine how to call an ASP. NET webpage:
Check the following Class Attribute value, and then refer to the following table to determine the page call method:
Call Method |
Attribute Value |
original request |
-
set to false .
-
set to null ( nothing ).
-
set to false .
|
resend |
-
set to true .
-
set to null ( nothing ).
-
set to false .
|
Cross-page transmission |
|
server transmission |
|
Callback |
|
Ispostback
Gets a value indicating whether the page is being loaded in response to the client's sending back, or whether the page is being loaded and accessed for the first time.
If the page is loaded in response to the client sending backTrueOtherwiseFalse.
The followingCodeSample TestIspostbackThe property value is based on the condition when the page is loaded and the page is called for all verification server controls...::.The validate method.
Private void page_load ()
{
If (! Ispostback)
{
Validate ();
}
}
Page.Previouspage attributes
Gets the page for transferring controls to the current page.
When you use the transfer method or cross-page transmission between ASP. NET pages for processing, the sending page contains the request information that may be required on the target page. AvailablePreviouspageAttribute to access this information