473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

IsPostBack

Can someone tell me how the value of IsPostBack is determined? Does it
float around with viewstate? The code to retrieve the value looks like the
following (Reflector - shame on me J ):

public bool get_IsPostBack(){ if (this._requestValueCollection == null)
{ return false; } return !this._fPageLayoutChanged;}I
am having an issue issueing requests between 2 different servers (BigIP) in
which the IsPostBack value is coming back as False when the request is
served by the other server. Shouldn't the IsPostBack property work fine
across load balance servers.
Nov 18 '05 #1
2 2665
IsPostback return true if the page is called from a submit.
How you can see from reflector it return false when
requestValueCollection=null.
It's mean that there are not request (the page not is called from a submit).

"Kevin C" <kc@noneya.com> ha scritto nel messaggio
news:OU**************@TK2MSFTNGP10.phx.gbl...
Can someone tell me how the value of IsPostBack is determined? Does it
float around with viewstate? The code to retrieve the value looks like
the
following (Reflector - shame on me J ):

public bool get_IsPostBack(){ if (this._requestValueCollection ==
null)
{ return false; } return !this._fPageLayoutChanged;}I
am having an issue issueing requests between 2 different servers (BigIP)
in
which the IsPostBack value is coming back as False when the request is
served by the other server. Shouldn't the IsPostBack property work fine
across load balance servers.

Nov 18 '05 #2
its determined from a value stored in viewstate. it should work across load
balance servers if the veiwstate is configured correctly for a webfarm.
normally if you have the configuration wrong, you will get an invalid
viewstate message. be sure the code matches on the two servers and the
asp.net revs match, and iis configurations match.

note: the "this._requestValueCollection == null" test is a quick bail if no
data was posted (and thus no viewstate)

-- bruce (sqlwork.com)

"Kevin C" <kc@noneya.com> wrote in message
news:OU**************@TK2MSFTNGP10.phx.gbl...
Can someone tell me how the value of IsPostBack is determined? Does it
float around with viewstate? The code to retrieve the value looks like the following (Reflector - shame on me J ):

public bool get_IsPostBack(){ if (this._requestValueCollection == null) { return false; } return !this._fPageLayoutChanged;}I
am having an issue issueing requests between 2 different servers (BigIP) in which the IsPostBack value is coming back as False when the request is
served by the other server. Shouldn't the IsPostBack property work fine
across load balance servers.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Tim | last post by:
To make !Page.IsPostBack to work, do I need to set any properties at page level or in the config files(Web, machine) or aspx files. Because code in under the !IsPostBack is executing twice and...
2
by: patrick_a | last post by:
Hi, I'm having trouble with using !IsPostBack. I want to create a linkbutton within a table when the page loads the first time and then have the page redirect based on the...
3
by: Alan Pretre | last post by:
I have a a WebForms.Table control that I am populating in Page_Load(). One of the columns has cells with a button in each row, which I wire up to its Click event handler. Everything is fine if I...
2
by: Pravin | last post by:
Hi, I have a doubt that how does ASP.NET find out whether the page is accessed for the first time or the page is due to a post back event, and then set the IsPostBack property ? Any ideas. ...
2
by: Anand Sagar | last post by:
I have a Panel1 and button1 on my webform. At runtime, I create 2 textboxes. I do it at the Page_Load event. I put the code within the " If Not isPostBack" For the button click event, I will do...
4
by: TJ | last post by:
Hi, There is one aspx web page that contains usercontrol. In aspx page and usercontrol , there is each submit button... Here is what I want... I want to process something depending on each...
6
by: RA | last post by:
btnAdd_Click does not get hit; if I have IsPostBack check in Page_load. If I don't have IsPostBack check; I am able to debug through btnAdd_Click. If I don't look for IsPostBack then it...
5
by: David Lozzi | last post by:
Hello, I have an interesting issue, so bear with me as I try to explain. I have a datalist posing as tabs for my application. And as each tab is clicked, a placeholder is then populated with the...
0
by: DC | last post by:
Hi, I am dynamically adding a usercontrol that uses "this.IsPostBack" in Page_Load to decide whether it must populate some of it's inner controls or not. Since I am adding the usercontrol to the...
5
by: BM | last post by:
I have a question that seems like it should have a simple answer, but I can't seem to find it by searching... Anyway, I'm trying to capture the IsPostBack event when I select an item within an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.