Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Store Connection String - Part 2
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Store Connection String - Part 2
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01359906
Message ID:
01359906
Views:
59
I right clicked on my project and selected Add->New, Application Configuration File.

I added the following:
add key="WorkConnString" value="Data Source=CIS-SI-OFFICE\SQLEXPRESS;Initial  catalog=BusMgr;Trusted_Connection=Yes"
In my code I added:
string sConnString = ConfigurationSettings.AppSettings["WorkConnString"];
I get Null back.

What am I doing wrong here???
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform