[Visual Basic]
Public ReadOnly Property IsPostBack As Boolean
[C#]
public bool IsPostBack {get;}
[C++]
public: __property bool get_IsPostBack();
[JScript]
public function get IsPostBack() : Boolean;
属性值
如果是为响应客户端回发而加载该页,则为 true;否则为 false。
[Visual Basic]
Sub Page_Load
If Not IsPostBack
' Validate initially to force the asterisks
' to appear before the first roundtrip.
Validate()
End If
End Sub
[C#]
void Page_Load() {
if (!IsPostBack) {
// Validate initially to force asterisks
// to appear before the first roundtrip.
Validate();
}
}
[JScript]
function Page_Load() {
if (!IsPostBack) {
// Validate initially to force the asterisks
// to appear before the first roundtrip.
Validate();
}
}
[C++] 没有可用于 C++ 的示例。若要查看 Visual Basic、C# 或 JScript 示例,请单击页左上角的语言筛选器按钮 。
[Visual Basic]
Public ReadOnly Property IsPostBack As Boolean
[C#]
public bool IsPostBack {get;}
[C++]
public: __property bool get_IsPostBack();
[JScript]
public function get IsPostBack() : Boolean;
属性值
如果是为响应客户端回发而加载该页,则为 true;否则为 false。
[Visual Basic]
Sub Page_Load
If Not IsPostBack
' Validate initially to force the asterisks
' to appear before the first roundtrip.
Validate()
End If
End Sub
[C#]
void Page_Load() {
if (!IsPostBack) {
// Validate initially to force asterisks
// to appear before the first roundtrip.
Validate();
}
}
[JScript]
function Page_Load() {
if (!IsPostBack) {
// Validate initially to force the asterisks
// to appear before the first roundtrip.
Validate();
}
}
[C++] 没有可用于 C++ 的示例。若要查看 Visual Basic、C# 或 JScript 示例,请单击页左上角的语言筛选器按钮 。
要求
平台: Windows 2000, Windows XP Professional, Windows .NET Server family