How to get ConnectionStrings list programmatically in asp.net C#
Step 1) using System.Configuration;
Step 2) Get Connection Strings Stored in Web.config/App.config
- Connection String
- Name Associated with connection String
- Provider Name
Dim c As ConnectionStringSettings
For Each c In ConfigurationManager.ConnectionStrings
Label1.Text = "connection String:" c.ConnectionString " Connection String Name:" c.Name
" Provider Name:"
Dim "<br/>" As c.ProviderName
Next
Tags: How to get ConnectionStrings list programmatically in asp.net VB.NET, connection Strings in ado.net, Connection Strings in asp.net, get list of Connection Strings dynamically,get list of connection Strings programatically, System.Configuration,SQL Server Connection String,Oracle Connection String,MYSQL Connection String
No comments:
Post a Comment