
April 2nd, 2012, 05:46 AM
|
|
Registered User
|
|
Join Date: Mar 2012
Posts: 8
Time spent in forums: 4 h 3 m 59 sec
Reputation Power: 0
|
|
|
PLZ TRY IT
<configuration>
<system.web>
<authentication mode="Forms">
<forms name="AuthenticateUser"
loginUrl="ValidateUser.aspx">
<credentials passwordFormat="Clear">
<user name="USER NAME " password="PASSWORD"/>
</credentials>
</forms>
</authentication>
</system.web>
<location path=".">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
</configuration>
-->The "path" attribute of the "location" element will ensure that any
ASPX pages users try to access in the folder named ASPX & within it's
sub-directories will be first told to login (using the "loginUrl"
attribute of the "forms" element) i.e. users will be redirected to
"ValidateUsers.aspx".
-->web.config validate such a user dynamically by
comparing the user name & password entered by a user with those
existing in a DB table instead of hard-coding
|