how to encrypt a connection string in web.config file?
Answer Posted / kinjal panchal
<configuration>
<appsetting>
<add key="debug" value="true"/>
<add key="server" value="your server name"/>
<add key="Database" value="your databse name"/>
<add key="username" value="your username"/>
<add key="password" value="your password"/>
</appsetting>
<connectionstring>
<add name="cnnectionstrigname"
connectionstring="datasource=server name; initial
catalog=database name; user id=your username; password=your
password" providername="system.data.sqlclient"/>
</connectionstring>
</configuration>
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is Cookies Less Session?
What is view state management in asp net?
What is the concepts of globalization and localization in .net?
What is the difference between sealed vs static class?
Explain the difference between panel and groupbox classes using .net?
What is a 404 redirect?
Explain the difference between the web config and machine config.
Describe the method to create a permanent cookie?
What is http post and http get?
What are the advantages and disadvantages of session?
Explain what are webservices?
What is a 1x1 pixel?
How Session use Cookies in State Management?
How does asp net store session ids by default?
Explain the function of new view engine in asp.net? : asp.net mvc