Read connectionstring from app.config c#

In this post, we will learn about how to Read connectionstring from app.config c# with an example.

Description:

In my previous posts I have explained various topics like Allow Only Numbers in Textbox using JQuery, Read Connection string from web.configue, Why is Dictionary preferred over Hashtable, Introduction to BackboneJS, Bind an enumeration to combobox in WinForm, jQuery is undefined error: Common mistake every developer should avoid, 15 Powerful jQuery Tips and Tricks for Developers and Designer.

Now in this post, I will explain Read connectionstring from app.config c# with appropriate example.

Write below lines of code to read connection string from app.configue

string _ConnectionString = System.Configuration.ConfigurationManager.AppSettings[key];

 

Read :

Summary

You can also read about ASP.NET, C#.Net, JQUERY, AJAX, JavaScript
I hope you get an idea about Read connectionstring from app.config C#.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you liked this post, don’t forget to share this.

Allow Only Numbers (Numerics) in Textbox using JavaScript

Leave a Reply

Your email address will not be published. Required fields are marked *

Name *
Email *
Website