Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where do I put a variable that is used throughout app

Status
Not open for further replies.

drew10

Programmer
Feb 26, 2002
123
US
I have a string variable that contains the root for serveral files throughout my application. I would like to store the variable once, and be able to call it from any page. Where is the best(most secure) place to store this variable? I was wondering if I could just add another key and value to my appSettings in the web.config file similar to the way I store my connection string? Thanks in advance for any suggestions!
drew
 
Definitely... web.config
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top