I have a Login Control.Even after successful Login it does not redirects to destination page

一笑奈何 提交于 2019-12-12 01:19:52

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/3921666/i-have-a-login-control-even-after-successful-login-it-does-not-redirects-to-dest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!