469,299 Members | 2,069 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,299 developers. It's quick & easy.

How to get postbackurl and ispostback in asp.net?

Sir, i want to know about ispostback in asp.net?
Jun 4 '10 #1

✓ answered by Frinavale

"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).

-Frinny

4 2296
Plater
7,872 Expert 4TB
isPostback is just as it says on MSDN and the literature on isPostback.
It is true when an asp.net page(aspx) page posts back to itself.
Jun 4 '10 #2
Frinavale
9,735 Expert Mod 8TB
"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).

-Frinny
Jun 4 '10 #3
Thanks ,
that means redirect=ispostback.
Jun 6 '10 #4
Frinavale
9,735 Expert Mod 8TB
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.

-Frinny
Jun 7 '10 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by wendylau81 | last post: by
reply views Thread by Wendy | last post: by
1 post views Thread by michael.neel | last post: by
4 posts views Thread by sck10 | last post: by
2 posts views Thread by xeroxero | last post: by
1 post views Thread by Chris | last post: by
1 post views Thread by joseph | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.