Login
Register
Articles »
Technology News
All Articles
Submit Guest Post
Tools & Utilities »
Code Converter
Forum
Learn »
Tutorials
Interview Experience
Practice Tests
Freelancers
Services »
Software Development
SEO & Digital Marketing
IT Companies
Forums
»
.NET
»
.NET
»
Page.IsPostBack and Not page.IsPostBack
Posted Date:
22 May 2006
Posted By::
Lakshmi priya
Member Level:
Bronze
Member Rank:
0
Points
: 2
Responses:
7
hi !
i want the exact and a clear difference between Page.IsPostBack and Not page.IsPostBack.
what is the purpose of using these? where it is being used?
can anyone help me with a small example.
regards,
LakshmiPriya
Tweet
Responses
#54581 Author:
HimaBindu Vejella
Member Level:
Gold
Member Rank:
0
Date: 22/May/2006 Rating:
Points
: 2
Submitting the form to it self is post back
If(!IsPostBack)
is used to avoid page refresh or Page Post Back
http://himabinduvejella.blogspot.com
http://sysntaxhelp.com/asp.net
http://groups.google.com/group/mugh
#54590 Author:
bhaskar1021
Member Level:
Gold
Member Rank:
0
Date: 22/May/2006 Rating:
Points
: 2
hai lakshmi
this is in vb.net
if u r using the datagird ,
the not postback means it vl not postback the page that means it vl not have any chnages in the datagrid
if the postback means the page is postback when any changes made in datagrid
If (Not Page.IsPostBack) Then
binddata()
else
binddata()
end if
#54598 Author:
sandeep Avh
Member Level:
Gold
Member Rank:
0
Date: 22/May/2006 Rating:
Points
: 2
when u run application the code that u want calculate first time then do inside not poast back.and code that u want to ececute each time when click on button or event do in postback
Ex:
1)when u see grid and data that do not want change each time set inside not post back.it display in first time not cheng any time
2)when u change time on label each time set inside postback
#54603 Author:
suresh chakravarthy
Member Level:
Bronze
Member Rank:
0
Date: 22/May/2006 Rating:
Points
: 2
this concept not come in vb.net this is in asp.net(WEB Application)
In asp.net each time page events fires before firing any event for example U click any button
it not directly fire the button click event.before firing button event it fires page events
.So each time page refresh so what are value we had we lost and what ever we done losttime samething done each time .but this is not important for us to compile each time same commands.to rectify this problem we use "postback "
page.ispostback=false means not do same thing each time do only firsttime
page.ispostback=true means do same thing each time when page is refreshed
thank q
suresh chakravarthy
#54747 Author:
rrr
Member Level:
Gold
Member Rank:
0
Date: 23/May/2006 Rating:
Points
: 2
if page.ispostback means page postback ayete
if not page.ispostback means page postback kakapote
these two we are used in asp .net
#118331 Author:
revathiraj
Member Level:
Bronze
Member Rank:
0
Date: 11/Apr/2007 Rating:
Points
: 2
Hi....
Ispostback means in the time of page load its property is false so in the time of button submission or clicking only its property is true and the page can display
!ispostback means its property default true so in the time of page load the fresh page display automatically..
regards
revathiraj
#118334 Author:
revathiraj
Member Level:
Bronze
Member Rank:
0
Date: 11/Apr/2007 Rating:
Points
: 2
Hi....
Ispostback means in the time of page load its property is false so in the time of button submission or clicking only its property is true and the page can display
!ispostback means its property default true so in the time of page load the fresh page display automatically..
regards
revathiraj
Post Reply
This thread is locked for new responses. Please post your comments and questions as a
separate thread
.
If required, refer to the URL of this page in your
new post
.
Tweet
Return to
Discussion Forum
Start new thread
Top Contributors
Today
Last 7 Days
more...
Awards & Gifts
Online Members
More...