473,396 Members | 1,804 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,396 software developers and data experts.

displaying current session value requires 2nd postback

I captured an arraylist into a session value but to display the current values, the page requires a postback or else it displays the
prior version of the value.

how do I force a post back automatically so I can always get the current value stored in the session object ?
Mar 16 '06 #1
4 1513
I would rather investigate the first problem. There is no reason for which
you shouldn't get the current value stored in your session.

It looks like to me that you have some kind of ordering problem. You likely
have the rendering taking place (or you copy a value for later rendering)
before updating the value causing the displayed values to be outdated.
Reordering those steps should fix the problem.

--
Patrice

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> a écrit dans le message
de news: O1**************@TK2MSFTNGP12.phx.gbl...
I captured an arraylist into a session value but to display the current
values, the page requires a postback or else it displays the prior version
of the value.

how do I force a post back automatically so I can always get the current
value stored in the session object ?

Mar 16 '06 #2
The session value is populated on the postback.
it comes from a server side custom control.

I don't know how to reordering any sequence within the postback.

any other thoughts ?
"Patrice" <a@bc.c> wrote in message news:O8**************@TK2MSFTNGP12.phx.gbl...
I would rather investigate the first problem. There is no reason for which you shouldn't get the current value stored in your
session.

It looks like to me that you have some kind of ordering problem. You likely have the rendering taking place (or you copy a value
for later rendering) before updating the value causing the displayed values to be outdated. Reordering those steps should fix the
problem.

--
Patrice

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> a écrit dans le message de news: O1**************@TK2MSFTNGP12.phx.gbl...
I captured an arraylist into a session value but to display the current values, the page requires a postback or else it displays
the prior version of the value.

how do I force a post back automatically so I can always get the current value stored in the session object ?


Mar 16 '06 #3
I woud start by tracing events to diagnose the problem. In particular my
first move would be to check that the variable affectation is done in an
event that is earlier the one used to render the updated value.

Or do you mean they are in the same procedure one after the other ? Seeing
some code narrowed down to just what shows the problem could help (and
possibly could lead you to find out the problem as you go with simplified
code).

--
Patrice

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> a écrit dans le message
de news: eW**************@TK2MSFTNGP09.phx.gbl...
The session value is populated on the postback.
it comes from a server side custom control.

I don't know how to reordering any sequence within the postback.

any other thoughts ?
"Patrice" <a@bc.c> wrote in message
news:O8**************@TK2MSFTNGP12.phx.gbl...
I would rather investigate the first problem. There is no reason for which
you shouldn't get the current value stored in your session.

It looks like to me that you have some kind of ordering problem. You
likely have the rendering taking place (or you copy a value for later
rendering) before updating the value causing the displayed values to be
outdated. Reordering those steps should fix the problem.

--
Patrice

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> a écrit dans le
message de news: O1**************@TK2MSFTNGP12.phx.gbl...
I captured an arraylist into a session value but to display the current
values, the page requires a postback or else it displays the prior
version of the value.

how do I force a post back automatically so I can always get the current
value stored in the session object ?



Mar 17 '06 #4
thanks for helping.

I have found a way to get the arraylist without the session object.
I created a second instance of the control and was able to retrieve the information via a function.

i now get the current values in the postback :)
"Patrice" <a@bc.c> wrote in message news:OA**************@TK2MSFTNGP12.phx.gbl...
I woud start by tracing events to diagnose the problem. In particular my first move would be to check that the variable affectation
is done in an event that is earlier the one used to render the updated value.

Or do you mean they are in the same procedure one after the other ? Seeing some code narrowed down to just what shows the problem
could help (and possibly could lead you to find out the problem as you go with simplified code).

--
Patrice

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> a écrit dans le message de news: eW**************@TK2MSFTNGP09.phx.gbl...
The session value is populated on the postback.
it comes from a server side custom control.

I don't know how to reordering any sequence within the postback.

any other thoughts ?
"Patrice" <a@bc.c> wrote in message news:O8**************@TK2MSFTNGP12.phx.gbl...
I would rather investigate the first problem. There is no reason for which you shouldn't get the current value stored in your
session.

It looks like to me that you have some kind of ordering problem. You likely have the rendering taking place (or you copy a value
for later rendering) before updating the value causing the displayed values to be outdated. Reordering those steps should fix
the problem.

--
Patrice

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot com> a écrit dans le message de news: O1**************@TK2MSFTNGP12.phx.gbl...
I captured an arraylist into a session value but to display the current values, the page requires a postback or else it displays
the prior version of the value.

how do I force a post back automatically so I can always get the current value stored in the session object ?



Mar 17 '06 #5

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

Similar topics

3
by: Uwe | last post by:
Howdy! I've googled and googled for this without success, and either it's so easy that nobody has ever asked, or there is some serious reason nobody would do this. But I'm going to ask anyway....
2
by: Paul | last post by:
Hi I've almost finished the web page I'm developing (with a great deal of help from this group - thanks everyone). My page contains 3 drop down boxes, a SEARCH button, a datagrid (populated...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
3
by: Nahrin | last post by:
I implimented ASP.NET 2.0 Client callback script (ICallbackEventHandler) to get the result back from server without postback the page. Problem is when seesion expires or authentication times out,...
5
by: Steven Blair | last post by:
I have the following code: Session = new CurrentUser("TEST"); When I postback to the server, the Session is null. My guess is a only the refence to my actual class is stored, rather than the...
17
by: Riaan | last post by:
Hi guys! I have an issue that needs urgent resolution. Imagine this scenario: You have: 1 production server running Windows Server 2003, IIS6 and an instance of MSDE 2000. There is an...
5
by: rockdale | last post by:
Hi, all: I have a linkbutton and I use javascript to open another webpage in a new window. I also want to set my session variable value when this linkbutton get clicked. These session variable...
0
by: readnlearn | last post by:
hai, i have written this below code for displaying captcha image whenever i entered incorrect uname,password in login page. for that i disable the controls of captcha like textbox,labels,button and...
7
by: Microsoft Newsserver | last post by:
Hi Folks. I have an issue I need some help with if thats OK. I am running Framework 2.0 using Windows Integrated Security. For most of the application we manage session timeouts without the...
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.