Microsoft Technology Guru Contest – Question 23


In the below code which is configured in web.config file of a Silverlight Business Application.

[code] <connectionStrings> <add name="MyEmpDB" connectionString="Data Source=.\SQL2008;Database=EMPDB; Integrated Security=true" providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> <membership defaultProvider="EmpMembershipProvider"> <providers> <clear /> <add name="EmpMembershipProvider" connectionStringName="MyEmpDB" applicationName="/EmployeeApp" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" : . </providers> </membership> : . </system.web> [/code]. What is the use of <clear /> tag ?

1. It clears the existing providers in that section which are inherited from machine.config file.
2. It clears all the entries in the web.config file.
3. Clears all the entries from the Machine.config file
4. None of the above

 

How to participate:

  • Answer the above question and providing your email address along.
  • Only the answer provided with email address will be marked.
  • Only the first correct answer will be considered.
  • For further details kindly refer to the Competition Rules and Guidelines.

Comments (8)

  1. sajjad ali says:

    2. It clears all the entries in the web.config file.

    mrsajjadmemon@hotmail.com

  2. 1. It clears the existing providers in that section which are inherited from machine.config file.

    aqeel.ahmed5@hotmail.com

  3. 1. It clears the existing providers in that section which are inherited from machine.config file.

    me@umair.me

  4. Waseemuddin Shaikh

    Option 1. It clears the existing providers in that section which are inherited from machine.config file

    waseem.uddin@live.com

  5. Syed Daniyal says:

    1. It clears the existing providers in that section which are inherited from machine.config file.

    dani_9211@hotmail.com

  6. Muhammad Irfan says:

    1. It clears the existing providers in that section which are inherited from machine.config file

    Email : ib_22_dik@yahoo.com

  7. 1. It clears the existing providers in that section which are inherited from machine.config file.

    shaikhjunaid@hotmail.com

  8. Omair Hassan says:

    1. It clears the existing providers in that section which are inherited from machine.config file.

    mary_khan87@hotmail.com