Re: web config problem!!!!

From: Amol Shambharker (amolshambharkar_at_yahoo.com)
Date: 06/30/03


Date: Mon, 30 Jun 2003 09:40:44 -0500


Hi,
I believe you could use the <location> tag to get separate login pages for the admin and user sub folder.the location tag would go something like this:
<configuration>
<location path="admin">
<system.web>
<authentication mode="Forms" />
.
.
.

<authorization>
.
.
.
</authorization>
</system.web>
</configuration>

Take care so that the <location> tab is outside the main <system.web> tag and within the <configuration> tag.I guess I am a little late with this reply and you might have figured things out for yourself but maybe someone could benefit from this.Hope this helps.

Amol.

>>> Volkan Karaboğa<volkan.karaboga@aktif.com.tr> 5/16/2003 1:35:20 AM >>>
hi again I rewieved that project but ıt has only one login page too.
What will I do if I have two different login page for admin and user sub
folders...
thanks

"Volkan Karaboğa" <volkan.karaboga@aktif.com.tr> wrote in message
news:ez4gkTiGDHA.1600@tk2msftngp13.phx.gbl...
> Hi all!!
>
> I have an asp.net application in a folder its name is like app and app
> folder has two sub folder named admin and user
>
> I want to show to users two different login page and I dropped 2 web
config
> file into these sub folder in order to redirect the users the pages which
I
> entered each web config file but an error occours when building project
>
> error msg is like "please check if there are some errors in web config
> file"
>
> our web config file is below for admin sub folder :
>
> ------------------------------------------------
>
> <?xml version="1.0" encoding="utf-8"?>
> <configuration>
> <system.web>
> <authorization>
> <deny users="?"/>
> </authorization>
> <authentication mode="Forms">
> <forms name="Authentication" loginUrl="adminlogin.aspx"
protection="All"
> path="/"/>
> </authentication>
> </system.web>
>
> </configuration>
>
> ---------------------------------------------------
>
> when I disable authentication section of webconfig it works but I have to
> enter in this section a login file
>
>
> How can I accomplish this process??
>
> Thanks your helps...
>
>
>
>
>



Relevant Pages

  • Re: web config problem!!!!
    ... What will I do if I have two different login page for admin and user sub ... > folder has two sub folder named admin and user ... > entered each web config file but an error occours when building project ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: getting me ducks in a row - concepts
    ... Don't create local login accounts for users, ... >> admin types know the local administrator credentials on all PCs. ... You don't load QB on the server - the registry keys or files/folders would ...
    (microsoft.public.windows.server.sbs)
  • Re: Open child form from dialog form
    ... found out that login failed in sub main? ... except I can't close login dialog. ... > Dim LoginForm As New LoginForm ... > I've set the button's dialogresult property in the designer. ...
    (microsoft.public.dotnet.languages.vb)
  • User Management Question
    ... I have one user login whose name is "Admin" - and another user login ... documents and settings in my "Admin" ... folders in the folder. ...
    (microsoft.public.windowsxp.setup_deployment)
  • User Management Question
    ... I have one user login whose name is "Admin" - and another user login ... documents and settings in my "Admin" ... folders in the folder. ...
    (microsoft.public.windowsxp.general)