Get Connection String from app.config, web.config
Get connection string by connection’s name
string conn = ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString;
or
string conn = ConfigurationManager.ConnectionStrings[1].ToString();
Tags: app config connection string special characters, show data in datagridview using connection string from app config, how to load connectionstring in dropdown from web config, gridview web config connectionstring, get connectionstring key value fromweb config for gridview, get connection string from web config c#, datagrid using web config connectionstrings, C# project web config connection string app config web config, c# bind combobox from app config connection string, web config a datagridview
Related posts:
- Remove Special Characters from String using C#
No Comments