Hy, I have a question...
I want for my application to select on startup the database i want...I thought about keeping my database name in a combo box and when i run my application i will select what i want...but....how can i concatenate in app.config the ConnectionString?Does anyone Know?
Thanks.
stefilina 0 Newbie Poster
Recommended Answers
Jump to PostYou can use a Dictionary collection object:
public partial class Form1 : Form { Dictionary<string, string> connStrings; public Form1() { InitializeComponent(); connStrings = new Dictionary<string, string>(); connStrings.Add("Connection string 1", "Your full connection string 1"); connStrings.Add("Connection string 2", "Your full connection string 2"); connStrings.Add("Connection string 3", "Your full …
All 3 Replies
abelLazm 183 Postaholic
Saikalyankumar -2 Junior Poster in Training
Mitja Bonca 557 Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.