Solved

Classic asp using web.config file

Posted on 2008-06-17
6
3,608 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
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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 15

Expert Comment

by:dosth
ID: 21804407
0
 
LVL 33

Accepted Solution

by:
raterus earned 500 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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 video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

825 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