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
What is difference between Fragment Caching and Page Caching in ASP.NET?
What is the caspol.exe tool used for?
Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?
Explain transparent caching with aop?
Explain asp.net mvc request life cycle? : asp.net mvc
Explain why datareader is useful?
How to improve performance of web application asp.net mvc? : Asp.Net MVC
is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
What are the differences between application object and session object?
What is an imagemap in asp.net?
What is session in asp.net?
What is repository pattern in mvc.net? : asp.net mvc
Explain different authentication modes in asp.net?
What is the differences between a primary key and a unique key in sql server?