Sir, i want to know about ispostback in asp.net?
How to get postbackurl and ispostback in asp.net?
Collapse
X
-
-
"IsPostback " is a property of the Page object (the Page that you are currently working with).
It is loaded when the ViewState for the page is loaded.
It indicates whether or not the page is posting back to itself (in this case IsPostback would be True) or if it's the first time loading the page (in this case IsPostback would be False).
-FrinnyComment
-
-
No, redirect is not postback.
If your page has been redirected to from another page the IsPostback will be false because it's the first time loading the page.
IsPostback is True if a control on the page causes the page to submit to the server.
For example, say you have a button on the page...
If the user was redirected to the page IsPostback == False at this point (it's the first time the page is loaded). If the user clicked the button and the button caused the page to submit to the server IsPostback == True in this case.
-FrinnyComment
Comment