ASP.NET Login Control is redirecting to default.aspx even when the destinationpageurl is not set
18
Solution 1
The defaultUrl under authentication tag in web.config the reason for automatic redirection to default.aspx.
<authentication mode="Forms">
<forms
name="401kApp"
loginUrl="/login.aspx"
cookieless="AutoDetect"
**defaultUrl="myCustomLogin.aspx">**
<credentials passwordFormat = "SHA1">
<user name="UserName"
password="07B7F3EE06F278DB966BE960E7CBBD103DF30CA6"/>
</credentials>
</forms>
Change this if you want to redirect to some other page instead of default.aspx .
Solution 2
Is it just redirecting to / and it's actually IIS which is serving default.aspx, based on the default document settings?
Author by
user10172241
Updated on June 05, 2022Comments
-
user10172241 almost 2 years
New to Qt Creator. I just want to clean up the sidebar so it only shows the current project. How can I remove (not delete) my other projects?