.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
Post a Comment