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 difference between cookies and cache?
What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?
What are the two types of web pages?
What is the difference between session and application?
hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.
Explain about Multi-Language integration?
What is the equivalent of date() and time() in asp.net?
How can we use Web API with ASP.NET Web Form?
What are sessions and cookies?
Explain the different types of directives in .net?
What is http response header?
What is the difference between executescalar and executenonquery?
Why is mvc better than asp.net?
What are the cookies types in asp.net?
Where code pages are used?