473,327 Members | 2,112 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,327 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 2660
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.