Re: How to pass Application.Item value back to class?
From: Scott Allen (bitmask_at_[nospam)
Date: 11/11/04
- Next message: dw: "Can't create ASP.NET project - HELP!"
- Previous message: Matt Berther: "Re: & in a QueryString"
- In reply to: lezmark: "Re: How to pass Application.Item value back to class?"
- Next in thread: Kevin Spencer: "Re: How to pass Application.Item value back to class?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 11 Nov 2004 10:26:43 -0500
Yes, you can always pass those items as parameters. I'd avoid passing
a reference to the entire Application collection as that can be easily
retreived with HttpContext.Current, but if I wanted to decouple my
classes from being used strictly in an asp.net app I'd pass the values
along and avoid HttpContext.Current and referencing
HttpApplicationState. You could always package the parameters into a
Hashtable or pass them individually.
-- Scott http://www.OdeToCode.com/blogs/scott/ On Thu, 11 Nov 2004 08:55:37 -0600, "lezmark" <lezmark@cox.net> wrote: >Hi, > Just a thought, Can't you pass the application settings as a parameter to >the caller? >As the context is entirely different( I mean the web context and your >processing classes), or in other words ,configuration is different from >processing classes, will you be able to change your code to accept >application settings as parameters from the asp.net page?
- Next message: dw: "Can't create ASP.NET project - HELP!"
- Previous message: Matt Berther: "Re: & in a QueryString"
- In reply to: lezmark: "Re: How to pass Application.Item value back to class?"
- Next in thread: Kevin Spencer: "Re: How to pass Application.Item value back to class?"
- Messages sorted by: [ date ] [ thread ]