98-363 · Question #218
You are creating a website for your school's yearbook club. You need to store additional strings specific to the website. Which Web.config file setting should you use?
The correct answer is D. <appSettings>. use the Application Settings sections of your web.config file. For example <system.web> ... </system.web> <add key="MyAppSetting" value="A test value." /> </configuration> This can then be used in your code by getting the value of…
Question
You are creating a website for your school's yearbook club. You need to store additional strings specific to the website. Which Web.config file setting should you use?
Options
- A<profile>
- B<localConfig>
- C<system.web>
- D<appSettings>
How the community answered
(27 responses)- A11% (3)
- B4% (1)
- C4% (1)
- D81% (22)
Explanation
use the Application Settings sections of your web.config file. For example <system.web> ... </system.web> <add key="MyAppSetting" value="A test value." /> </configuration> This can then be used in your code by getting the value of System.Configuration.ConfigurationManager.AppSettings["MyAppSetting"]43
Topics
Community Discussion
No community discussion yet for this question.