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 the use of ASP.NET routing?
What is state management technique?
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?
What is the use of the tag in the web.config file?
What is the use of placeholder control? Can we see it at runtime?
Define data caching?
What is page fragment caching?
What are sessions used for?
What are the various ways to send content from one page to another?
How can exception be handled with out the use of try catch?
What is the difference between typeof() vs gettype()?
What is cookieless session id explain in brief?
What is round trip in asp.net?
Is it possible for me to change my aspx file extension to some other name?
Explain transparent caching with aop?