我有一个登录控件.即使成功登录后,它也不会重定向到目标页面 [英] I have a Login Control.Even after successful Login it does not redirects to destination page

查看:101
本文介绍了我有一个登录控件.即使成功登录后,它也不会重定向到目标页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有Forms身份验证的ASP.NET登录控件.即使成功登录后,它也不会重定向到目标页面.但是它使用returnURL并停留在同一登录页面上.如何使登录控件重定向到指定的目标页面?

I have a ASP.NET Login Control with Forms authentication.Even after successful Login it does not redirects to destination page.But it uses returnURL and stays at same Login page.How to make Login Control to redirect to specified destination page?

推荐答案

如果您还没有这样做,我认为,您只需要在表单标签(网络标签)中设置默认网址即可.像这样配置)

If you haven't done so already, I think you just need to set the default url in the forms tag (web.config like so)

<forms loginUrl="blablabla.aspx" defaultUrl="YourDefaultPage.aspx" />  

试试吧,让我们知道您的生活.

Give it a go and let us know how you get on.

这篇关于我有一个登录控件.即使成功登录后,它也不会重定向到目标页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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