.net - C# connection string in web.config file -


In the code behind my page, how can I use a connection string that is stored in my web.config file ?

  system. Web. Configuration. Web Configuration Manager. Connection String ["YouConnStringName"]. ConnectionString;  

The system for this. References of configuration dll and System.Web.dll are required.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -