Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Classic asp using web.config file

Posted on 2008-06-17
6
Medium Priority
?
3,918 Views
Last Modified: 2010-04-21
Can a classic asp application use a web.config file for connection string purposes? Instead of updating each file that has the connection string i just wat to update the web.config file or just one file.
0
Comment
Question by:abussie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 33

Expert Comment

by:raterus
ID: 21804041
Don't think so since they are two completely different technologies.  

What you can do is just parse the web.config file using an XML parsing routine to get the values you want out of it.  Or when the asp.net application starts, you can write out a simple text file with the connection strings to a file that's easier for you to read in ASP.
0
 
LVL 15

Expert Comment

by:dosth
ID: 21804095
0
 
LVL 22

Expert Comment

by:prairiedog
ID: 21804208
Never seen examples of using global.asa to store connection strings. Maybe I should do some search.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 15

Expert Comment

by:dosth
ID: 21804407
0
 
LVL 33

Accepted Solution

by:
raterus earned 1500 total points
ID: 21804490
I think you both are missing the point of the question.  abussie just wants to store the connection string in ONE place, and he'd like to do it in web.config of an asp.net application.   He wants ASP to read these values.
0
 

Author Closing Comment

by:abussie
ID: 31467990
asp doesn't read config files i just stored the connection strings on a file in the virtual directory and used an include statement to add the file to the code.
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question