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. Property Value
true if the page is being loaded in response to a client postback; otherwise, false.
void Page_Load() { if (!IsPostBack) { // Validate initially to force asterisks // to appear before the first roundtrip. Validate(); } }
If you have the better answer, then send it to us. We will display your answer after the approval.