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
Explain the concept of MVC Scaffolding?
What is a form tag?
Which .NET framework supports Web API?
What is the use of ASP.NET routing?
Define view state.
Explain how is the asp.net mvc architecture different from others? : asp.net mvc
How do you declare static variable?
What is cache in asp net?
What is viewstate? What does the “enableviewstate” property do?
What is owin authentication?
What is active web pages?
What is the difference between executescalar and executenonquery?
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.
What is difference between session and cookies?
What are the different authentication modes in asp.net?