Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the best practices to follow to secure connection strings in an ASP.NET web application?

0
Posted

What are the best practices to follow to secure connection strings in an ASP.NET web application?

0

1. Always store connection strings in the site’s Web.config file. Web.config is very secure. Users will not be able to access web.config from the browser. 2. Do not store connection strings as plain text. To help keep the connection to your database server secure, it is recommended that you encrypt connection string information in the configuration file. 3. Never store connection strings in an aspx page. 4. Never set connection strings as declarative properties of the SqlDataSource control or other data source controls.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123