如何重定向到子文件夹中的页面 [英] how to redirect to the page in the subfolder

查看:60
本文介绍了如何重定向到子文件夹中的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我创建了一个用于登录的主要母版页,然后在登录后根据它应该重定向的角色。我维护经理,资源角色

所以我为经理和资源创建了两个文件夹,并为这两个角色分别创建了主页面并放在文件夹中。现在在登录页面代码后面如何写重定向到文件夹中的页面。

解决方案

你有没有尝试过Response.Redirect(Admin / adminhomepage.aspx )

hi in my application i have created one main master page for login and after getting login then based on the role it should redirect. i m maintaining manager,resource roles
so i created two folders for manager and resource and seperate master pagers for both roles and placed in the folders. now in login page code behind how to write redirect to the page which is in the folder.

解决方案

Did you try Response.Redirect("Admin/adminhomepage.aspx")


这篇关于如何重定向到子文件夹中的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆