Click here to Skip to main content
15,909,051 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
in my application i have a login page at root level and login page at folder level

how to navigate to the login page of folder when user access to page in that folder..

login page in root

login page in videotutorials

how to redirecct to login page in videotut...when user request to page in videotutorials folder

thanx in advance...
Posted
Updated 18-Mar-13 2:50am
v3

you can simply give url starting with tilde see below

C#
"~/Login.aspx"


same way other page if in other directory you can simple write the name of folder

eg Root-->Inventory

and page in Inventory Directory you can simple write

C#
"~/Inventory/InventoryList.aspx"
 
Share this answer
 
Create different webconfig files in each folder and set loginurl accordingly in each webconfig file for authentication.
 
Share this answer
 
Comments
[no name] 18-Mar-13 9:13am    
can i use authentication tag in web.config of subdirectory..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900