I have Admin folder and User folder. and Login.aspx page inside user folder and Login.aspx page inside admin folder.
i have web.config in admin folder and user folder, please help me for loginUrl in web.config.
i use this code:
web.config (admin folder):
<authentication mode="Forms">
<forms loginUrl="~/Admin/Login.aspx" timeout="2880"/>
</authentication>
web.config (user folder):
<authentication mode="Forms">
<forms loginUrl="~/User/Login.aspx" timeout="2880"/>
</authentication>
but its not working and display error.