Public ReadOnly Property IsPostBack As Boolean
Dim instance As Page Dim value As Boolean value = instance.IsPostBack
public bool IsPostBack { get; }
public: property bool IsPostBack { bool get (); }
/** @property */ public boolean get_IsPostBack ()
public function get IsPostBack () : boolean
下面的代码示例测试 IsPostBack 属性的值以在加载了 Page 时按条件为所有验证服务器控件调用 Page.Validate 方法。
Sub Page_Load If Not IsPostBack ' Validate initially to force the asterisks ' to appear before the first roundtrip. Validate() End If End Sub
void Page_Load() { if (!IsPostBack) { // Validate initially to force asterisks // to appear before the first roundtrip. Validate(); } }
function Page_Load() { if (!IsPostBack) { // Validate initially to force the asterisks // to appear before the first roundtrip. Validate(); } }
Windows 98、Windows 2000 SP4、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition
.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求。