Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8469225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:09:52+00:00 2026-06-10T16:09:52+00:00

I am totally new to Windows programming so i don’t know how to access

  • 0

I am totally new to Windows programming so i don’t know how to access connection string in Class.cs file as we can in web application as follow:

 public DataTable Client_Login_Check(string Email, string Password)
{
    DataTable dt = new DataTable();
    try
    {
        object[] objParam = new object[2];
        objParam[0] = Email;
        objParam[1] = Password;
        return dt = SqlHelper.ExecuteDataset(ConfigurationManager.AppSettings["GL"], "GreenLight_Users_LoginCheck", objParam).Tables[0];
    }

    catch (Exception ex)
    {
        OutputMessage = ex.Message;
    }
    return dt;
}

I have added “System.Configuration” namespace…But still i am not getting ConfigurationManager in help. Please help me..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T16:09:54+00:00Added an answer on June 10, 2026 at 4:09 pm

    Apart from adding a reference to System.Configuration.dll in the project, you will also need to add a using declaration for the namespace in the file:

    using System.Configuration;
    

    Note:

    You should be using ConfigurationManager.ConnectionStrings["GL"].ConnectionString and have the connection string in the connectionStrings configuration section, not in the appSettings section.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I write two windows console application as below class ProgramA { static void Main(string[]
I can't compile openCV with Cmake and MinGW on windows. I totally don't understand
I am totally new to flash development, don't even know ActiveScript yet. I have
Totally new to programming so kindly excuse the silly question. I have this URL
I am totally new to programming and to some new technologies. Right now I
I am totally new to cloud services, and using Windows Azure, I need a
If this question is totally unsuitable, please forgive me. I don't know anything about
Hi I am totally new to php (I literally know nothing about it) but
I am totally new in programming. For my first programm I tried to make
i'm totally new in Android and i installed the android-sdk-windows in my laptop. And

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.