473,405 Members | 2,262 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,405 software developers and data experts.

request specific holding location....

Hi,
I have some request specific data that gets created in a "early event", that
I need to pass around to many other events.
I need access to this data during that request.
(and more importantly disapears after the request is completed).

But... asp.net "Request" is read only.
Is there a request specific global place, where I can put this data into?
Thanks
Nalaka


Nov 24 '05 #1
4 1556
Hi Nalaka,

Welcome to ASPNET newsgroup.
Regarding on the storing request specfic data which can be accessible
throughout the requests' server lifecycle (in all the public request
related events...) question, I think you can consider using the
HttpContext.Current.Items collection... HttpContext.Current represent the
current processing Request's Httpcontext (the associated serverside ASP.NET
worker thread). and the Items collection can help store some request/worker
thread specific datas which can be accessible during the request's
processing pipeline....

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Nalaka" <na******@nospam.nospam>
| Subject: request specific holding location....
| Date: Wed, 23 Nov 2005 17:39:22 -0800
| Lines: 16
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <eD**************@TK2MSFTNGP14.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: m181-9.bctransit.bc.ca 199.60.181.9
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:360604
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
| I have some request specific data that gets created in a "early event",
that
| I need to pass around to many other events.
| I need access to this data during that request.
| (and more importantly disapears after the request is completed).
|
| But... asp.net "Request" is read only.
| Is there a request specific global place, where I can put this data into?
|
|
| Thanks
| Nalaka
|
|
|
|
|

Nov 24 '05 #2
Hey Nalaka,

Does my suggestion help you a little? If there're anything else we can
help, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| X-Tomcat-ID: 62363310
| References: <eD**************@TK2MSFTNGP14.phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Thu, 24 Nov 2005 03:09:56 GMT
| Subject: RE: request specific holding location....
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <ht**************@TK2MSFTNGXA02.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 49
| Path: TK2MSFTNGXA02.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:360613
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Nalaka,
|
| Welcome to ASPNET newsgroup.
| Regarding on the storing request specfic data which can be accessible
| throughout the requests' server lifecycle (in all the public request
| related events...) question, I think you can consider using the
| HttpContext.Current.Items collection... HttpContext.Current represent
the
| current processing Request's Httpcontext (the associated serverside
ASP.NET
| worker thread). and the Items collection can help store some
request/worker
| thread specific datas which can be accessible during the request's
| processing pipeline....
|
| Hope helps. Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
| --------------------
| | From: "Nalaka" <na******@nospam.nospam>
| | Subject: request specific holding location....
| | Date: Wed, 23 Nov 2005 17:39:22 -0800
| | Lines: 16
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| | X-RFC2646: Format=Flowed; Original
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| | Message-ID: <eD**************@TK2MSFTNGP14.phx.gbl>
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | NNTP-Posting-Host: m181-9.bctransit.bc.ca 199.60.181.9
| | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
| | Xref: TK2MSFTNGXA02.phx.gbl
| microsoft.public.dotnet.framework.aspnet:360604
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| |
| | Hi,
| | I have some request specific data that gets created in a "early event",
| that
| | I need to pass around to many other events.
| | I need access to this data during that request.
| | (and more importantly disapears after the request is completed).
| |
| | But... asp.net "Request" is read only.
| | Is there a request specific global place, where I can put this data
into?
| |
| |
| | Thanks
| | Nalaka
| |
| |
| |
| |
| |
|
|

Nov 29 '05 #3
hi Steven... thanks a lot
this is exactly what I was looking for......

Nalaka
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:8n****************@TK2MSFTNGXA02.phx.gbl...
Hey Nalaka,

Does my suggestion help you a little? If there're anything else we can
help, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| X-Tomcat-ID: 62363310
| References: <eD**************@TK2MSFTNGP14.phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Thu, 24 Nov 2005 03:09:56 GMT
| Subject: RE: request specific holding location....
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <ht**************@TK2MSFTNGXA02.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 49
| Path: TK2MSFTNGXA02.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:360613
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Nalaka,
|
| Welcome to ASPNET newsgroup.
| Regarding on the storing request specfic data which can be accessible
| throughout the requests' server lifecycle (in all the public request
| related events...) question, I think you can consider using the
| HttpContext.Current.Items collection... HttpContext.Current represent
the
| current processing Request's Httpcontext (the associated serverside
ASP.NET
| worker thread). and the Items collection can help store some
request/worker
| thread specific datas which can be accessible during the request's
| processing pipeline....
|
| Hope helps. Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
| --------------------
| | From: "Nalaka" <na******@nospam.nospam>
| | Subject: request specific holding location....
| | Date: Wed, 23 Nov 2005 17:39:22 -0800
| | Lines: 16
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| | X-RFC2646: Format=Flowed; Original
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| | Message-ID: <eD**************@TK2MSFTNGP14.phx.gbl>
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | NNTP-Posting-Host: m181-9.bctransit.bc.ca 199.60.181.9
| | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
| | Xref: TK2MSFTNGXA02.phx.gbl
| microsoft.public.dotnet.framework.aspnet:360604
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| |
| | Hi,
| | I have some request specific data that gets created in a "early
event",
| that
| | I need to pass around to many other events.
| | I need access to this data during that request.
| | (and more importantly disapears after the request is completed).
| |
| | But... asp.net "Request" is read only.
| | Is there a request specific global place, where I can put this data
into?
| |
| |
| | Thanks
| | Nalaka
| |
| |
| |
| |
| |
|
|

Dec 2 '05 #4
You're welcome Nalaka,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Nalaka" <na******@nospam.nospam>
| References: <eD**************@TK2MSFTNGP14.phx.gbl>
<ht**************@TK2MSFTNGXA02.phx.gbl>
<8n**************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: request specific holding location....
| Date: Fri, 2 Dec 2005 09:20:05 -0800
| Lines: 108
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <#T**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: m181-9.bctransit.bc.ca 199.60.181.9
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:362352
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| hi Steven... thanks a lot
| this is exactly what I was looking for......
|
| Nalaka
|
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:8n****************@TK2MSFTNGXA02.phx.gbl...
| > Hey Nalaka,
| >
| > Does my suggestion help you a little? If there're anything else we can
| > help, please feel free to post here.
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| > --------------------
| > | X-Tomcat-ID: 62363310
| > | References: <eD**************@TK2MSFTNGP14.phx.gbl>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain
| > | Content-Transfer-Encoding: 7bit
| > | From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| > | Organization: Microsoft
| > | Date: Thu, 24 Nov 2005 03:09:56 GMT
| > | Subject: RE: request specific holding location....
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | Message-ID: <ht**************@TK2MSFTNGXA02.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | Lines: 49
| > | Path: TK2MSFTNGXA02.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:360613
| > | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
| > |
| > | Hi Nalaka,
| > |
| > | Welcome to ASPNET newsgroup.
| > | Regarding on the storing request specfic data which can be accessible
| > | throughout the requests' server lifecycle (in all the public request
| > | related events...) question, I think you can consider using the
| > | HttpContext.Current.Items collection... HttpContext.Current
represent
| > the
| > | current processing Request's Httpcontext (the associated serverside
| > ASP.NET
| > | worker thread). and the Items collection can help store some
| > request/worker
| > | thread specific datas which can be accessible during the request's
| > | processing pipeline....
| > |
| > | Hope helps. Thanks,
| > |
| > | Steven Cheng
| > | Microsoft Online Support
| > |
| > | Get Secure! www.microsoft.com/security
| > | (This posting is provided "AS IS", with no warranties, and confers no
| > | rights.)
| > |
| > | --------------------
| > | | From: "Nalaka" <na******@nospam.nospam>
| > | | Subject: request specific holding location....
| > | | Date: Wed, 23 Nov 2005 17:39:22 -0800
| > | | Lines: 16
| > | | X-Priority: 3
| > | | X-MSMail-Priority: Normal
| > | | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | | X-RFC2646: Format=Flowed; Original
| > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | | Message-ID: <eD**************@TK2MSFTNGP14.phx.gbl>
| > | | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | | NNTP-Posting-Host: m181-9.bctransit.bc.ca 199.60.181.9
| > | | Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
| > | | Xref: TK2MSFTNGXA02.phx.gbl
| > | microsoft.public.dotnet.framework.aspnet:360604
| > | | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | |
| > | | Hi,
| > | | I have some request specific data that gets created in a "early
| > event",
| > | that
| > | | I need to pass around to many other events.
| > | | I need access to this data during that request.
| > | | (and more importantly disapears after the request is completed).
| > | |
| > | | But... asp.net "Request" is read only.
| > | | Is there a request specific global place, where I can put this data
| > into?
| > | |
| > | |
| > | | Thanks
| > | | Nalaka
| > | |
| > | |
| > | |
| > | |
| > | |
| > |
| > |
| >
|
|
|

Dec 3 '05 #5

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

Similar topics

5
by: patrice | last post by:
Is it possible to modify the Request-Line of an HTTP response ? I'd like to remove the parameters from a GET url. More precisely, I wish I could replace : with : The "Header" function...
5
by: Robert Spoons | last post by:
Can you look over this code, preferably try it, and comment? I believe the 'extend' function below will allow you to use full 'class inheritance' in javascript, but I would like to verify it. ...
3
by: jrefactors | last post by:
page0.asp->page1.jsp When the user click submit button in page0.asp, it will post the form request to page1.jsp. page0.asp and page1.jsp are in separate machines. In page1.jsp, based on the...
8
by: CDARS | last post by:
Hi all, I have a confusing question on ASP.NET cookies usage: 1> Response.Cookies("test").value = Now 2> Response.Write(Request.Cookies("test").value) 3> 4> Response.write("<hr>") 5>...
6
by: saden_paki | last post by:
I am having this problem, that Request.UrlReferrer comes out to be Nothing, when a user hits a button on a html page which only have this button, on this button's onClick javascript event I have...
3
by: ExclusiveResorts | last post by:
Can the CallContext be used reliably for storing request specific data? We are developing an application library that uses the CallContext to keep an IdentityMap (hashtable of business objects...
14
by: DavidNorep | last post by:
I do not know PHP, consider to write a CGI with this technology and have the following question. Is it possible to invoke a PHP script and let it endlessly wait for requests from a website (a...
4
by: Pool | last post by:
I tried to connect DB2 (Sitting in Unix server at my client location) using Db2 connect V8. I am getting the following error message. I tried all the possible options BUt the error is same.. See each...
5
by: Rory Becker | last post by:
I have had code in my Application_Start which is intended to run once at the start of my application's life. It loads connection information and similar from a known location. However I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.