Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

appsettings

I am having 2 errors trying to convert vb to c#
Appsettings cannot be used as a method. What can I use.
Application.Add("SQLServer", System.Configuration.ConfigurationManager.AppSettings("SQLServer"));
0
Seven price
Asked:
Seven price
2 Solutions
 
angus_young_acdcCommented:
If you are converting it to C# the AppSettings would be System.Configuration.ConfigurationManager.AppSettings["SQLServer"];

You also need to make sure to add a reference to System.configuration.
0
 
Seven priceFull StackAuthor Commented:
tks
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now