As the property name implies, isPostback==false means the page has not been posted back----------> means the page is loading for the first time.
So when firsttime you are requesting for the page isPostback=false at that point of time.
If you pree refresh button, this also means you are requesting for the page for the first time.
If your page has a server side button control and whern you click that, you land to the same page but a post back occurs. At that point of time for that page IsPostback==true as the page has been posted back to theserver..
Am i clear enough?
Joydeep Sen
Dont forget to click “Mark as Answer” on the post that helped you.This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers
If IsPostback is false then you know that the user is requesting the page for the first time. If it is true then you know that the user has click on some control on the page.
Page.IsPostBack Is used to check if the user posted back to the page. Meaning they clicked a button or changed a field in the form that causes it to post back to itself.
Putting Not usually is used to check the initial load of the page.
You only need to fill databound fields on the initial load, so you put all your databinding code in the Not page.IsPostBack. The values are saved in the viewstate and can only be read by the form if it gets posted back to itself.
So, if it is a postback dont do databinding if its not a postback do databinding.
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.
If IsPostback is false then you know that the user is requesting the page for the first time. If it is true then you know that the user has click on some control on the page.
With PostBack we mean response to client's request. IsPostBack property of asp.net page indicates whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time. When page is being loaded accessed
for the first time, IsPostBack is set to false;
Ispostback false mean Page loads first time when we set Ispostback == true it means on click of other controls page is postabck to server for processing .
Ispostback == false mean Page doesnot Postback on every request.
Best Regards
life is name of learning!
Mark as an answer if it helps
rupeshs
Member
9 Points
31 Posts
what is Ispostback==false
Feb 12, 2009 06:39 AM|LINK
what is Ispostback==false
vinayget
Member
254 Points
50 Posts
Re: what is Ispostback==false
Feb 12, 2009 06:50 AM|LINK
IsPostBack== false - Means it works for first time form load. it does not work when button is clicked .
IsPostBack== true - Means it does not work for first time form load. It works when button is clicked.
Vinay
.net Sr. Developer
Hyderabad
joydeepsen
Contributor
4155 Points
802 Posts
Re: what is Ispostback==false
Feb 12, 2009 06:51 AM|LINK
As the property name implies, isPostback==false means the page has not been posted back----------> means the page is loading for the first time.
So when firsttime you are requesting for the page isPostback=false at that point of time.
If you pree refresh button, this also means you are requesting for the page for the first time.
If your page has a server side button control and whern you click that, you land to the same page but a post back occurs. At that point of time for that page IsPostback==true as the page has been posted back to theserver..
Am i clear enough?
Dont forget to click “Mark as Answer” on the post that helped you.This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers
jithin76
Participant
1197 Points
217 Posts
Re: what is Ispostback==false
Feb 12, 2009 06:52 AM|LINK
If IsPostback is false then you know that the user is requesting the page for the first time. If it is true then you know that the user has click on some control on the page.
jithin76
Participant
1197 Points
217 Posts
Re: what is Ispostback==false
Feb 12, 2009 06:52 AM|LINK
Putting Not usually is used to check the initial load of the page.
You only need to fill databound fields on the initial load, so you put all your databinding code in the Not page.IsPostBack. The values are saved in the viewstate and can only be read by the form if it gets posted back to itself.
So, if it is a postback dont do databinding if its not a postback do databinding.
karthic_85
Contributor
2598 Points
587 Posts
Re: what is Ispostback==false
Feb 12, 2009 06:56 AM|LINK
the page is loading for first time
arathi
Member
259 Points
60 Posts
Re: what is Ispostback==false
Feb 12, 2009 07:00 AM|LINK
Hi,
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.
If IsPostback is false then you know that the user is requesting the page for the first time. If it is true then you know that the user has click on some control on the page.
Regards
Arathi
uniquesaiful
Participant
920 Points
184 Posts
Re: what is Ispostback==false
Feb 12, 2009 07:01 AM|LINK
With PostBack we mean response to client's request. IsPostBack property of asp.net page indicates whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time. When page is being loaded accessed for the first time, IsPostBack is set to false;
Read more from here
Please mark as answer if it helps you.
Open Source Project: ds17ftp.codeplex.com
Blog: tipsaspdotnet.blogspot.com/
Web: devstudio17.com
Rameezwaheed
Contributor
3730 Points
1595 Posts
Re: what is Ispostback==false
Feb 12, 2009 07:41 AM|LINK
Hi ,
Ispostback false mean Page loads first time when we set Ispostback == true it means on click of other controls page is postabck to server for processing .
Ispostback == false mean Page doesnot Postback on every request.
Best Regards
Mark as an answer if it helps
shashankkale
Member
155 Points
77 Posts
Re: what is Ispostback==false
Feb 14, 2009 06:29 AM|LINK
Postback is use for client and server communication.