How do you retrieve information from web.config ?
Answer Posted / sudhir kunnure
In web.congig you can add key and its value.And that key
value u can retrive like
string connectionString =
System.Configuration.ConfigurationSettings.AppSettings
["conStringWeb"].ToString()
Here conStringWeb is my key and i access its value.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How many web.config files can I have in an application?
How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?
What do you mean by authentication?
Why do we use sessions?
Is it possible to apply themes to an asp.net application? If yes, then how?
What are the session management techniques asp net?
Explain about secure socket layer?
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
What threading model used in asp and asp.net?
What kind of programming language is ASP.NET?
What is a SESSION and APPLICATION object?
How can you pass multiple complex types in Web API?
What is redirectpermanent in asp.net?
What do you mean by caching in asp.net?
What's the use of formatters in .net?