skip to main | skip to sidebar

ASP.NET Tips

Monday, July 9, 2012

Get the ConnectionString from the Web.Config file with only one line of code (C#)


Get the ConnectionString from the Web.Config file with only one line of code (C#):
var conString = ConfigurationManager.ConnectionStrings["LocalSqlServer"];
string strConnString = conString.ConnectionString;
Posted by ASP.NET tips at 5:22 PM No comments:
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)


Cảm ơn đời mỗi sớm mai thức dậy
Ta có thêm ngày nữa để yêu thương


KAHLIL GIBRAN (1883-1931)


Blog Archive

  • ►  2024 (1)
    • ►  March (1)
  • ►  2023 (2)
    • ►  July (1)
    • ►  June (1)
  • ►  2020 (1)
    • ►  December (1)
  • ►  2019 (2)
    • ►  September (1)
    • ►  July (1)
  • ►  2017 (2)
    • ►  May (1)
    • ►  February (1)
  • ►  2015 (2)
    • ►  September (1)
    • ►  January (1)
  • ►  2014 (2)
    • ►  October (1)
    • ►  July (1)
  • ►  2013 (2)
    • ►  July (1)
    • ►  January (1)
  • ▼  2012 (5)
    • ►  December (1)
    • ►  October (1)
    • ▼  July (1)
      • Get the ConnectionString from the Web.Config file ...
    • ►  May (1)
    • ►  March (1)
  • ►  2011 (9)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (3)

About Me

My photo
ASP.NET tips
View my complete profile
 

Search This Blog