Solved

Getting the connnectionString in an MVC2 program, that's stored in the Web.Config

Posted on 2010-09-22
2
271 Views
Last Modified: 2012-05-10
I have set the connnectionString in an MVC2 ASP.NET Web.Config file, but need to insert it into an SqlConnection object. ow do I get it from the Web Config?

I use C#.

Thanks,
newbieweb
0
Comment
Question by:newbieweb
2 Comments
 
LVL 33

Accepted Solution

by:
jppinto earned 500 total points
ID: 33736922
0
 

Author Closing Comment

by:newbieweb
ID: 33738911
Thanks.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Printing 1 52
Latest thoughts on C# utilizing Mono on Linux vs .NET on Windows? 5 31
Linq asp.net mvc 13 12
Syntax Issue with SSIS module 26 60
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

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