Answers for "get connection string c#"

C#
0

get connectionstring from web config c#

// Add a using directive at the top of your code file    
using System.Configuration;

// Within the code body set your variable    
string cs = ConfigurationManager.ConnectionStrings["connectionStringName"].ConnectionString;
Posted by: Guest on August-15-2020
0

c# connection string

"ConnectionStrings": {
    "DefaultConnection": "Server=DESKTOP-V4RQQ32\SQLEXPRESS;Database=SchoolManagementDB;Trusted_Connection=True;"
  },
Posted by: Guest on August-02-2021
0

how to access a connection string C#

var connectionString = ConfigurationManager.ConnectionStrings["WingtipToys"].ConnectionString;
Posted by: Guest on September-21-2021

Code answers related to "get connection string c#"

C# Answers by Framework

Browse Popular Code Answers by Language