Solved

Classic asp using web.config file

Posted on 2008-06-17
6
3,532 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
Comment Utility
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
Comment Utility
0
 
LVL 22

Expert Comment

by:prairiedog
Comment Utility
Never seen examples of using global.asa to store connection strings. Maybe I should do some search.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 15

Expert Comment

by:dosth
Comment Utility
0
 
LVL 33

Accepted Solution

by:
raterus earned 500 total points
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now