Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有表单身份验证的 ASP.NET 登录控件。即使成功登录后,它也不会重定向到目标页面。但它使用 returnURL 并停留在同一个登录页面。如何使登录控件重定向到指定的目标页面?
如果您还没有这样做,我认为您只需要在表单标签中设置默认网址(web.config 就像这样)
<forms loginUrl="blablabla.aspx" defaultUrl="YourDefaultPage.aspx" />
试一试,让我们知道您的进展情况。