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

loading to session after response is sent.

hey,

i'm trying to figure out how i would load items to the session after the
reponse has been sent out.

(1) so user goes to /default.aspx
(2) server does it's thing and sends response back
(3a) /default.aspx loads ( yay! )
(3b) while the client is loading the page.. we continue to add items to the
session
(4) user clicks button on /default.aspx
(5) we check if ready, if ready go to 6, otherwise, wait til everything is
loaded on server side..
(6) respond to the button click...

been trying to look for a way to do this.. so that user doesn't have to
wait while the server does stuff.. assume that users don't bail and it's
worth it to load and all that.. oh and that there is a great reason to have
a bloated session..

thanks all!!

Jul 19 '07 #1
3 1291
Hi,

I'm not sure if I fully understand your question, so please correct me if
I've misunderstood anything.

Please refer to ASP.NET Page Life Cycle Overview below for more information
on when you can add states to session:

#ASP.NET Page Life Cycle Overview
http://msdn2.microsoft.com/en-us/library/ms178472.aspx

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 20 '07 #2
can be done with a inproc session. default needs to add a container
object to session that will hold all the new objects. default then
creates a new thread to do the background processing and passes a
reference to the container. the background thread fills the container.
you will have to implement thread locking for the container.

-- bruce (sqlwork.com)

kyong wrote:
hey,

i'm trying to figure out how i would load items to the session after the
reponse has been sent out.

(1) so user goes to /default.aspx
(2) server does it's thing and sends response back
(3a) /default.aspx loads ( yay! )
(3b) while the client is loading the page.. we continue to add items to the
session
(4) user clicks button on /default.aspx
(5) we check if ready, if ready go to 6, otherwise, wait til everything is
loaded on server side..
(6) respond to the button click...

been trying to look for a way to do this.. so that user doesn't have to
wait while the server does stuff.. assume that users don't bail and it's
worth it to load and all that.. oh and that there is a great reason to have
a bloated session..

thanks all!!
Jul 20 '07 #3
okay, so just fire off a thread to do the work..
and i assume this won't work with oop session management because of
serialization of the session..

is it possible to access a session object outside the asp.net life cycle?
hmm.. thanks for the input.. i suppose it won't quite work the way i want
it to..

we use a state server...

"bruce barker" wrote:
can be done with a inproc session. default needs to add a container
object to session that will hold all the new objects. default then
creates a new thread to do the background processing and passes a
reference to the container. the background thread fills the container.
you will have to implement thread locking for the container.

-- bruce (sqlwork.com)

kyong wrote:
hey,

i'm trying to figure out how i would load items to the session after the
reponse has been sent out.

(1) so user goes to /default.aspx
(2) server does it's thing and sends response back
(3a) /default.aspx loads ( yay! )
(3b) while the client is loading the page.. we continue to add items to the
session
(4) user clicks button on /default.aspx
(5) we check if ready, if ready go to 6, otherwise, wait til everything is
loaded on server side..
(6) respond to the button click...

been trying to look for a way to do this.. so that user doesn't have to
wait while the server does stuff.. assume that users don't bail and it's
worth it to load and all that.. oh and that there is a great reason to have
a bloated session..

thanks all!!
Jul 23 '07 #4

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

Similar topics

3
by: PM | last post by:
I'm trying to make a kind of search history containing the 3 last searched words. So I'm using 3 Session Variables: Word1 / Word2 / Word3. In order to get this history working, I need to put the...
15
by: Thomas Scheiderich | last post by:
I am trying to understand Session variables and ran into a question on how they work with data that is passed. I have an HTM file that calls an ASP file and sends the name either by GET or POST....
14
by: Julia | last post by:
Hi, I have the following scenario Page A.asp call page B.asp Page B.asp need to load page C.asp make some changes and return the result to IE when A.asp is first running IIS create a...
1
by: farooqazeem | last post by:
Hi guys, I’m facing some problem can u solve it. Problem is: I’m giving user Id and password in (Login_sess.asp) and submit it to page (sess_test.asp). I am setting session variable...
3
by: Coskun Cavusoglu | last post by:
Hi, What I want to know is when a user clicks on a button I send him to another page by using the Response.Redirect("") method. But the page that the user is being sent to has to generate a...
4
by: Dean | last post by:
I finally got class session variables to work by putting the following in global.asax in the session_start: dim myDBComp as DBComp = new DBComp........ session("myDBComp") = myDBComp In each...
9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
76
by: kwilder | last post by:
This works, but it doesn't load the latest version of the xml if it was just modified without closing and reopening the browser. Here's the scenario: I have an xml doc called results.xml. It...
4
by: three-eight-hotel | last post by:
I'm somewhat of a newbie to PHP coding, but have developed a site using the technology, and have been pleasantly surprised by the capabilities offered. I am more comfortable in the ASP world,...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...

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.