nerdexam
Microsoft

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…

Understanding Web Applications

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)
  • A
    11% (3)
  • B
    4% (1)
  • C
    4% (1)
  • D
    81% (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

#Web.config#appSettings#configuration#ASP.NET

Community Discussion

No community discussion yet for this question.

Full 98-363 Practice