S
SpaceMarine
hello,
my web app form has many DropDownLists that pull their content from a
database. these calls are in a Business Access Layer, when first
checks the context's Cache object for existing copies. to do that, the
BAL needs to be aware of the user's HttpContext.
question: how expensive is it for each BAL method to instantiate the
current context, like so:
HttpContext context = HttpContext.Current;
....if im doing this a dozen times from a consuming page class, is this
bad?
or, would it be better for me to have the consuming page class *pass
in* its context to the dozen BAL methods? will a see a speed savings,
or is it moot?
thanks!
sm
my web app form has many DropDownLists that pull their content from a
database. these calls are in a Business Access Layer, when first
checks the context's Cache object for existing copies. to do that, the
BAL needs to be aware of the user's HttpContext.
question: how expensive is it for each BAL method to instantiate the
current context, like so:
HttpContext context = HttpContext.Current;
....if im doing this a dozen times from a consuming page class, is this
bad?
or, would it be better for me to have the consuming page class *pass
in* its context to the dozen BAL methods? will a see a speed savings,
or is it moot?
thanks!
sm