Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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;
Comment

PREVIOUS NEXT
Code Example
Csharp :: compare two binary tree 
Csharp :: mathf.clamp unity 
Csharp :: unity custom update 
Csharp :: fill all array c# with same value 
Csharp :: asp.net core identity get user id 
Csharp :: c# for loop increment by 2 
Csharp :: convert list to dicitonary c# 
Csharp :: make invisible unity 
Csharp :: c# switch 
Csharp :: jarray to list c# 
Csharp :: c# check if string is path or file 
Csharp :: json.net deserialize dynamic 
Csharp :: dropdown wpf 
Csharp :: How to get an array of months in c# 
Csharp :: slider.onchanged in unity 
Csharp :: if unity 
Csharp :: unity c# 
Csharp :: visual studio fix formatting 
Csharp :: c# create object with properties 
Csharp :: listview item click c# 
Csharp :: get current assembly path c# 
Csharp :: = in c# 
Csharp :: c# print exception stack trace 
Csharp :: read embedded resource c# xml 
Csharp :: why v-slot not working in vue 3 
Csharp :: convert string to int c# 
Csharp :: unity rotate direction by angle 
Csharp :: enumerable.range contains 
Csharp :: foreach enum 
Csharp :: how return only value of array in laravel 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =