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 are the asp.net list controls and difference between them?
What is asp.net localization?
What is the parent class of all the web server control?
What is application variable?
Disable browser cache for entire ASP.NET website?
We Only Know The Total Number Of Feet In The Farmyard. Write A Program that will compute the total number of rabbits and chickens in the farmyard. Assume number of feet in the farmyard are 40. how many rabbits and chickens are?
What is application variable in asp.net?
How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?
How would you enable impersonation in the web.config file?
What is preprocessor in .net?
What is the application pool?
What are the session management techniques asp net?
A Web Service Can Only Be Written In .net. Is it True??
What is route in web api?
How does ASP.NET framework maps client side events to Server side events.?