locked
Two login pages, two web.config files RRS feed

  • Question

  • User803078016 posted

    Can we use two web.config files, one for each of the login pages (both login pages created in webforms)? 

    Wednesday, November 28, 2018 4:59 AM

All replies

  • User1120430333 posted

    No, there can only be on root Web.config for a Web project.

    Wednesday, November 28, 2018 6:25 AM
  • User-2054057000 posted

    You can create any number of web config files. But the condition is:

    1. You keep them in separate folder. 
    2. No folder can have more than 1 web config files.
    Wednesday, November 28, 2018 11:38 AM
  • User753101303 posted

    Hi,

    It is likely better to directly discuss what you are trying to do. To start with, why do you need two login pages ? How a user will know which one to use ?

    Wednesday, November 28, 2018 3:07 PM
  • User61956409 posted

    Hi Tejashree,

    Can we use two web.config files, one for each of the login pages (both login pages created in webforms)? 

    As yogyogi mentioned, website's subfolder(s) can have its own Web.config, you can put the login pages in subfolder and add its own Web.config file.

    And if possible, you can use the <location> element to target settings to a specific location.

    Besides, if you can clarify more about your requirement, we would understand it better. 

    With Regards,

    Fei Han

    Thursday, December 6, 2018 7:19 AM