By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,501 Members | 2,797 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,501 IT Pros & Developers. It's quick & easy.

Passing Data From HTTPModule to ASP.NET Page Instance

P: n/a

I am thinking through a framework for logging, authentication, etc. that
requires the system to look up quite a bit of information from a database.
Is there an easy way to pass information that is retrieved in an HTTP Module
to the executing page instance in ASP.NET? For example, I would like to
create an object that would store various pieces of information in the HTTP
Module and make it available to the executing instance of the page in
ASP.NET. I would prefer not to use .NET caching or session variables (for
various reasons). Is there a way to add values to the
Request.ServerVariables collection? Is there an elegant way to do this?

Thanks.

----------
Michael S. Jones
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello Michael,

You could always add the items to HttpContext.Current.Items. The items in
this collection will follow the request around.

--
Matt Berther
http://www.mattberther.com
I am thinking through a framework for logging, authentication, etc.
that requires the system to look up quite a bit of information from a
database. Is there an easy way to pass information that is retrieved
in an HTTP Module to the executing page instance in ASP.NET? For
example, I would like to create an object that would store various
pieces of information in the HTTP Module and make it available to the
executing instance of the page in ASP.NET. I would prefer not to use
.NET caching or session variables (for various reasons). Is there a
way to add values to the Request.ServerVariables collection? Is there
an elegant way to do this?

Thanks.

----------
Michael S. Jones

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.