Read app Data from Web config in c#


Web Config:

<appSettings>
    <add key="DBSource" value="Test" />
</appSettings>


c#:

string db= WebConfigurationManager.AppSettings["DBSource"];


Libery:
using System.Web.Configuration;

Comments

Popular posts from this blog

How to use DbFunctions.TruncateTime

Microsoft Access Connectivity from C#

Tool 'dotnet-ef' failed to install. dotnet core