How do you retrieve information from web.config ?
Answer Posted / sam
using ConfigurationManager, Configuration classes
Example
ConfigurationManager.ConnectionStrings
["str"].ConnectionString;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is authorization in asp.net?
How to display Alert in ASP.NET
What is Web Server Control Templates.?
Difference between overriding and overloading?
How many types of sessions in asp.net?
What is viewstategenerator?
Why and where this web.config file is used?
What are the advantages of using session?
What are the advantages of the code-behind feature?
Which method do you use to kill explicitly a users session?
What is session mode in asp.net?
Define repository pattern in asp.net mvc? : asp.net mvc
How Can assign alias name for ASP.NET Web API Action?
Why we use asp.net for website development?
What is viewstate parameter?