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.