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 runat?
Explain different types of validators in asp.net?
Explain server control extensibility with reference to asp.net 2.0 ?
What is base class of .net?
Let's say I have an existing application written using vb6 and this application utilizes windows 2000 com+ transaction services. How would you approach migrating this application to.net?
What is redirecting behavior?
What is page request in asp.net?
What is new asp.net core?
Can action method static?
What is a session http?
What is the parent class of all web server control?
What is a windows service?
How can I open ashx file in mobile?
How do u declare static variable and how it is declared and what is its lifetime?
What is asp.net file?