如何根据某个子目录的请求页面重定向到不同的登录页面 [英] how to redirect to different login pages according to requested page of certain sub directory
问题描述
在我的应用程序中我有一个根级别的登录页面和文件夹级别的登录页面
当用户访问页面时如何导航到文件夹的登录页面在那个文件夹中..
root登录页面
视频教程中的登录页面
如何在videotut中重定向到登录页面...当用户请求在videotutorials文件夹中页面时
提前提交。 ..
你可以简单地从代字号开头给url看下面
〜/ Login.aspx
与其他页面相同,如果在其他目录中你可以简单地写出文件夹的名称
例如Root - > Inventory
和库存目录中的页面你可以简单写一下
< span class =code-string> 〜/ Inventory / InventoryList.aspx
在每个文件夹中创建不同的webconfig文件,并在每个webconfig文件中相应地设置loginurl以进行身份验证
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...
you can simply give url starting with tilde see below
"~/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
"~/Inventory/InventoryList.aspx"
Create different webconfig files in each folder and set loginurl accordingly in each webconfig file for authentication.
这篇关于如何根据某个子目录的请求页面重定向到不同的登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!