is a .net property whose value indicates whether the page is being rendered for the first time or is being loaded in response to a postback.
Questions tagged [ispostback]
67 questions
13
votes
3 answers
How does IsPostback technically work?
I'm currently having a strange issue whereby all browsers except from Google Chrome are registering a call to IsPostback within a Page_Load event as true when I click an asp.net button which simply posts back to the same page.
This has led me to try…

Brian Scott
- 9,221
- 6
- 47
- 68
5
votes
1 answer
How to call button's click event from click of linkbutton of another page without post back in c# ASP.NET
I have a LinkButton in masterpage and on click of LinkButton , I am redirecting to, say, Page1.aspx . On Page1.aspx , I have a button1. On click of that button1, I am opening new window, not affecting data of the Page1.aspx.
But when I click on…

Dinav Ahire
- 581
- 1
- 10
- 30
5
votes
3 answers
Using .IsPostBack in the Page_Load sub routine
Is it a "Best Practice" to always use .IsPostBack in the Page_Load sub routine of a web form like in this example coding?
I hope it's ok to ask this question. If not, I will immediately remove the question.
Basically I want to code the way most of…

Emad-ud-deen
- 4,734
- 21
- 87
- 152
4
votes
1 answer
CheckBox "Checked" value in GridView is always false
I'm using a checkbox column in a gridview which is populated from a SQL database. A button below the gridview should retrieve the data of the rows whose checkboxe's have been checked. When I loop over all the rows checkboxe's, none of them has…

Doua Ali
- 175
- 1
- 5
- 21
3
votes
5 answers
IsPostBack always returns false
I've encountered a weird problem. Everytime I refresh the page, IsPostBack is false.
To make sure nothing in my contents or master pages is causing this, I have created an empty web form and fired it up in debug mode. still, on postbacks, I have…

Kamyar
- 18,639
- 9
- 97
- 171
3
votes
2 answers
PartialView is not working (whole page refresh instead)
Hello I am new to MVC 4. I am having a problem with partialView.. I goole it and searched alot and studied different tutorials but couldn't find any solution that can address my problem.I created a PagedList to display records at Index.cshtml page.…

Muzamil Rafique
- 147
- 1
- 12
3
votes
1 answer
Spoofing IsPostBack
I'm using HtmlAgilityPack as part of an automated process to extract content from existing internal web pages. The problem is that I need to be able to make it think IsPostBack is true.
This is the flow:
Make initial call to page and extract…

Underground
- 127
- 5
3
votes
1 answer
IsPostBack failing in ASP.NET?
We have an ASP.NET 3.5 application which we have created for a logistics company, which allows their customers to input deliveries/jobs and get them onto the system.
The core page in the system is the Add Job screen as as you can imagine - as the…

Chris
- 7,415
- 21
- 98
- 190
3
votes
1 answer
IsPostBack is false when transfering to different server in server farm?
I have a asp.net website that is deployed on two servers. In front of the servers there's a load balancer that distribute requests to the two servers. To store the session we use SQL Server.
My problem is that if the user go to the page, press a…

viblo
- 4,159
- 4
- 20
- 28
2
votes
1 answer
How can I have a seamless code push (why does Page._fPageLayoutChanged matter)?
We have an issue that we cannot solve: how to push code during the day with no end user interruption. I'm a developer, and I'm working in tandem with my Systems department.
Setup: 3 Windows 2008 IIS 7 boxes - 1 is down node, the 2 others are live…

archangel76
- 1,544
- 2
- 11
- 18
2
votes
3 answers
C#: Dynamic user Control IsPostback returning true event though the UC is loaded the first time
I have a Page with a Dynamic User Control in a placeholder.
When I load the Page it loads a UC ( let's call it "OrigUC" ) by default. On this page I have a button , which replaced the UC with another "NewUC" . So this button postback using ajax and…

Gotcha
- 1,039
- 1
- 16
- 24
2
votes
1 answer
Am I missing the obvious ? I think I will have to use ispostback here but not understanding how
I am trying to insert file path into SQL Server with an update query. However, I am unable to see the changes despite query running successfully without errors. Here is the code of my asp.net web app. I am trying to insert the stream value in the…

santhoshkumar B
- 103
- 10
2
votes
1 answer
IsPostBack always false after button click
On my pages onLoad() function I'm disabling all controls on the page in the following manner
var form = document.getElementById("form1");
var elements = form.elements;
for (var i = 0, len = elements.length; i < len; ++i) {
elements[i].disabled =…

user48408
- 3,234
- 11
- 39
- 59
2
votes
2 answers
Gridview won't rebind data after changing Gridview page
I am trying to populate my gridview with amazon search results. At the moment when the page loads, datasource is filled with data. What I am trying to do is show the data after pressing the Search button, but it displays "No Records Found". I have…

Suprsonic
- 135
- 1
- 7
1
vote
6 answers
IsPostback always false when i click button or any other
Am using asp.net for above 5 years. But now am facing a weird problem. When i try to send emails from form created by me which contains asp:button, asp:textbox, etc., in code page it always telling IsPostBack false. Even when i click the Send mail…

Vinoth Kannan
- 69
- 1
- 4
- 11