Difference between web.config and app.config?
Answer Posted / reva ram sahu
web.config is used with web applications. web.config will by
default have several configurations required for the web
application. You can have a web.config for each folder under
your web application.
app.config is used for windows applications. When you build
the application in vs.net, it will be automatically renamed
to <appname>.exe.config and this file has to be delivered
along with your application.
You can use the same method to call the appsettings values
from both config files :
System.Configuration.COnfigurationSettings.AppSettings["Key"]
Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
Where is http session stored?
1.can we add connection string in global.asax?????????? 2.what are the default files included when we create new web application????
What is x xss protection?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
What are the built-in objects in asp.net?
What is meant by server side scripting?
What is paging in context of Memory?
Define repository pattern in mvc.net? : asp.net mvc
What is an imagemap in asp.net?
Is asp.net a programming language?
What does mean by a neutral culture?
Explain the difference between overriding and overloading?
Explain about the .NET framework?
How would you get asp.net running in apache web servers?
Explain the Order of events in an asp.net page?