how to config the web.config to specify the folder i want form aut

Discussion in 'ASP .Net' started by =?Utf-8?B?bGVueWFkbw==?=, May 18, 2005.

  1. i want to use the forms authentication for the folder in virtual folder
    "admin/" but i don't know how to config the web.config. once i turn on
    authentication mode to "Forms", all files will need authenticate, which is
    not what i want. anyone can help?
     
    =?Utf-8?B?bGVueWFkbw==?=, May 18, 2005
    #1
    1. Advertisements

  2. =?Utf-8?B?bGVueWFkbw==?=

    Scott Allen Guest

    You can control which files need authentication with the
    <authorization> section of web.config. Allow access to the anonymous
    users (<allow users="?"/>) and only deny anonymous users in the admin
    area.

    See:
    HOW TO: Control Authorization Permissions in an ASP.NET Application
    http://support.microsoft.com/default.aspx?scid=kb;en-us;316871

    HTH,

    --
    Scott
    http://www.OdeToCode.com/blogs/scott/

    On Tue, 17 May 2005 21:21:02 -0700, "lenyado"
    <> wrote:

    >i want to use the forms authentication for the folder in virtual folder
    >"admin/" but i don't know how to config the web.config. once i turn on
    >authentication mode to "Forms", all files will need authenticate, which is
    >not what i want. anyone can help?
     
    Scott Allen, May 18, 2005
    #2
    1. Advertisements

  3. Thanks! that's of great help! Thanks so much! :D
     
    =?Utf-8?B?bGVueWFkbw==?=, May 20, 2005
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TaeHo Yoo
    Replies:
    2
    Views:
    453
    TaeHo Yoo
    Jul 29, 2003
  2. Siegfried Heintze

    How to specify roles in web.config file

    Siegfried Heintze, Apr 2, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,207
    Steve C. Orr [MVP, MCSD]
    Apr 2, 2004
  3. GrantMagic

    specify url in web.config

    GrantMagic, Aug 19, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    764
  4. Mike
    Replies:
    5
    Views:
    10,220
    Juan T. Llibre
    Mar 12, 2005
  5. Bryan Ax

    web page Save Dialog specify folder?

    Bryan Ax, May 26, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    539
    Bryan Ax
    May 26, 2005
  6. thomas
    Replies:
    3
    Views:
    939
    thomas
    Oct 12, 2006
  7. CSharpner
    Replies:
    0
    Views:
    1,427
    CSharpner
    Apr 9, 2007
  8. Random

    specify enum values sin web.config

    Random, May 31, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    544
    Random
    May 31, 2007
Loading...