Socrates877
Programmer
I think my computer is typing code without me knowing it...Something is alive, and it isn't the usual gnomes/goblins/gremlins.
I set up forms security. In addition, my host computer setup windows security, without me even asking. Here is my file structure:
/web.config
/dblabor/default.aspx
/dblabor/user/web.config
/dblabor/user/timecard.aspx
I am restricting access to timecard.aspx. default.aspx is my login form. Here is the first web.config:
<configuration>
<system.web>
<authentication>
<forms name="DBLabor" path="/dblabor/user" loginUrl="/dblabor/default.aspx" protection="All" />
</authentication>
<customErrors mode="Off" />
</system.web>
</configuration>
Here is the second web.config file:
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
The way I want this to work is that when a user tries to go to timecard.aspx, he gets redirected to default.aspx to login.
What actually happens is that a standard windows login dialog pops up! The only username/password that works for this windows login is my ftp username/password.
How is this possible? Moreover, how can I get this to work the way I want it to?
Thanks
I set up forms security. In addition, my host computer setup windows security, without me even asking. Here is my file structure:
/web.config
/dblabor/default.aspx
/dblabor/user/web.config
/dblabor/user/timecard.aspx
I am restricting access to timecard.aspx. default.aspx is my login form. Here is the first web.config:
<configuration>
<system.web>
<authentication>
<forms name="DBLabor" path="/dblabor/user" loginUrl="/dblabor/default.aspx" protection="All" />
</authentication>
<customErrors mode="Off" />
</system.web>
</configuration>
Here is the second web.config file:
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
The way I want this to work is that when a user tries to go to timecard.aspx, he gets redirected to default.aspx to login.
What actually happens is that a standard windows login dialog pops up! The only username/password that works for this windows login is my ftp username/password.
How is this possible? Moreover, how can I get this to work the way I want it to?
Thanks