I have a Login Control.Even after successful Login

2019-09-04 03:28发布

问题:

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.