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


Please Help Members By Posting Answers For Below Questions

What is the use of ASP.NET routing?

562


What is state management technique?

547


How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?

530


What is the use of the tag in the web.config file?

573


What is the use of placeholder control? Can we see it at runtime?

575






Define data caching?

549


What is page fragment caching?

559


What are sessions used for?

561


What are the various ways to send content from one page to another?

526


How can exception be handled with out the use of try catch?

550


What is the difference between typeof() vs gettype()?

556


What is cookieless session id explain in brief?

533


What is round trip in asp.net?

515


Is it possible for me to change my aspx file extension to some other name?

589


Explain transparent caching with aop?

527