登录重定向用户上的ASP成员身份将用户重定向到通过电子邮件发送的链接 [英] ASP membership on login redirect user to the Link that is emailed

查看:108
本文介绍了登录重定向用户上的ASP成员身份将用户重定向到通过电子邮件发送的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用asp成员身份asp:登录..
在电子邮件中,我必须向用户发送页面链接,该用户应访问..
例如 http://..../Report/.../.../View.aspx
单击此链接时...从电子邮件地址asp成员身份重定向到登录页面
http://..../Report/login.aspx

如何重定向到http://..../Report/.../.../View.aspx
用户通过
登录后 http://..../Report/login.aspx


用户登录后如何获取我的视图页面的网址...

非常感谢Advance ..

:)

I am using asp membership asp: Login..
On email i have to send user a link of a page.. that he should visit..
for example http://..../Report/.../.../View.aspx
on clicking this link... from email address asp membership redirects to login page
http://..../Report/login.aspx

How to redirect to http://..../Report/.../.../View.aspx
as soon as user login through
http://..../Report/login.aspx


How to get the url of my view page as soon as user log in...

Thanks a lot Advance..

:)

推荐答案

多种方式之一:
1.当您的问题步骤1发生时,在View.aspx的页面加载中,检查登录的会话值.
-如果不为null,则显示页面.
-如果为null,则将当前URL保存在一个会话中(将其命名为browserdURLSession),然后重定向到登录页面.
2.用户登录后,将usser配置文件保存在会话中或维护登录的会话,以便您可以标识该用户已登录.
3.检查浏览的URL会话值(browsedURLSession),如果为null,则显示主页.如果其中包含一些网址,请重定向到该网址.

试试吧!
One of various ways:
1. When your question step 1 happens, in the page load of View.aspx, check for the logged-in session value.
- If it is not null then show the page.
- If it is null then, save the current URL in a session (call it browsedURLSession) and then redirect to login page.
2. Once the user logs in, save the usser profile in session or maintain the logged in session such that you can identify that user is logged in.
3. Check for browsed URL session value (browsedURLSession), if it''s null show the home page. If it holds some url, redirect to that one.

Try!


这篇关于登录重定向用户上的ASP成员身份将用户重定向到通过电子邮件发送的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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