How to make a particular information to be accessible at masterpage, page and usercontrol

Posted by Ismail S on Stack Overflow See other posts from Stack Overflow or by Ismail S
Published on 2010-05-06T05:38:08Z Indexed on 2010/05/06 13:28 UTC
Read the original article Hit count: 175

Filed under:
|
|

I'm fetching some settings out of the database based on a value passed from a query string. Out of these settings, a few will be used in master page, few on my Page and few in my user control (say login control which is a web user control). I've an entity class MySetting for it and there is a method in my data access layer which returns me an instance of MySetting when I pass the value I got in query string.

I don't want to fetch settings from the database multiple times for one request. I'm using asp.net web forms with C# and sql server.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about webforms