how to encrypt a connection string in web.config file?
Answer Posted / anand gopal makwa munger
write the code on web.config file Like below
<configuration>
<appSettings/>
<connectionStrings>
<add name="Connection" providerName="System.Data.SqlClient" connectionString="server=abc\Sqlexpress;IntegratedSecurity=SSPI;DataBase=XYZ"/>
</connectionStrings>
</configuration>
and write the code Behind page(ie .cs File)
ConnectionStringSettings con = ConfigurationManager.ConnectionStrings["Connection"];
SqlConnection conn = new SqlConnection(con.ConnectionString);
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Explain the concept of event bubbling in ASP.NET?
What is the mvc framework?
What is the maximum number of classes that can be contained in one dll file?
What is a web based system?
What is caching? What are different ways of caching in asp.net?
What are the advantages of Web API?
What are sql notifications and sql invalidations?
Can you explain the importance of finalize method in .net?
What is hidden field in asp.net?
What is full trust in asp.net?
Which is better union or union all?
What are the main advantages of using asp.net?
How can we communicate with each server in N-tier Architecture? and what are the methods?
How can we identify that the Page is Post Back?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#