Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4036
  • Last Modified:

Classic asp using web.config file

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
abussie
Asked:
abussie
1 Solution
 
raterusCommented:
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
 
dosthCommented:
0
 
prairiedogCommented:
Never seen examples of using global.asa to store connection strings. Maybe I should do some search.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
raterusCommented:
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
 
abussieAuthor Commented:
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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now