ISPostback

xiaoxiao2021-03-06  41

ISPOSTBACK refers to whether the WebForm is in response to the client.

Simply, it is to judge whether it is Webform first visit.

ISPostBack refers to access to the second and afterwards

! ISPostback is the first visit

Results for True | False

This is generally used when cookie and session use.

DataGrid data binding, etc.

E.g:

IF (! ispostback)

{

IF (session == NULL)

{

Response.Redirect ("Error.htm");

}

}

转载请注明原文地址:https://www.9cbs.com/read-62741.html

New Post(0)