Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi !
I am new to C#. I have been using Visual Studio 2008.
I have created Windows Forms application. In that, I want to store connection string in Settings.settings or any other file so that it is easy to change.
If you know it please help me.
Thanks in Advance.
Posted
Updated 2-Apr-12 7:07am
v2

1 solution

Connection strings are normally placed in the app.config file under the...wait for it...connectionStrings element.
 
Share this answer
 
Comments
Aniket S Kulkarni 2-Apr-12 13:19pm    
Thanks Mark Nischalke for posting the answer and for your valuable time.
I gone through following steps:
1.Project Properties.
2.Looked for Settings tab.
3.Chosen the type Connection String.
4.Given the value.
That's it.
Thanks again Mark Nischalke.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900