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 the tag in the web.config file?
What is redirecting behavior?
Is asp.net and .net are same or different?
What is difference between session and application in asp net?
Explain the main function of razor in asp.net? : asp.net mvc
How can u debug your .net application?
What is the difference between mvc and asp.net? : Asp.Net MVC
1.can we add connection string in global.asax?????????? 2.what are the default files included when we create new web application????
Explain the use of duration attribute of @outputcache page directive.
How do we access view state value of this page in the next page?
what is publisher?
What r the asp.net list controls and diff. Between them?
Explain the differences between clr & cts?
Mention few asp.net validators.
What is the good practice to implement validations in aspx page?