Solved

appsettings

Posted on 2012-04-10
3
277 Views
Last Modified: 2012-04-18
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
Comment
Question by:sevensnake77
3 Comments
 
LVL 53

Assisted Solution

by:Dhaest
Dhaest earned 150 total points
ID: 37831135
0
 
LVL 15

Accepted Solution

by:
angus_young_acdc earned 150 total points
ID: 37831882
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
 
LVL 9

Author Closing Comment

by:sevensnake77
ID: 37863003
tks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

756 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