I have a Login Control.Even after successful Login

2019-09-04 03:15发布

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条回答
聊天终结者
2楼-- · 2019-09-04 03:32

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.

查看更多
登录 后发表回答