Gets a value indicating whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time.
[Visual Basic, C#, JScript] The following example tests the value of the IsPostBack property to conditionally call the Page.Validate method for all validation server controls when the Page is loaded.
[Visual Basic]
Sub Page_Load
If Not IsPostBack
Validate()
End If
End Sub
[C#]
void Page_Load() {
if (!IsPostBack) {
Validate();
}
}
[JScript]
function Page_Load() {
if (!IsPostBack) {
Validate();
}
}