Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

loading to session after response is sent.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kyong - 19 Jul 2007 21:52 GMT
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!!
Walter Wang [MSFT] - 20 Jul 2007 09:13 GMT
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 (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
bruce barker - 20 Jul 2007 16:20 GMT
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)

> hey,
>
[quoted text clipped - 17 lines]
>
> thanks all!!
kyong - 23 Jul 2007 16:18 GMT
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...

> 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
[quoted text clipped - 25 lines]
> >
> > thanks all!!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.