I have created a start page called "Login" with a standard asp:login control. When i log in with the appropriate credentials i want i t to navigate to "home page"
Above you can see the site structure. When i log in the page does not redirect correctly. the url looks correct but the page still contains the login control and does not contain the correct template. Any idea what I'm doing wrong?
Hi. Try to set the "defaultUrl" attribute of the "authentication/forms" element in your web.config file to the Url of your "Home page" (you can get it from the "Properties" tab).
:-) "High Five" is to give karma points to the author of any post you find interesting. Everybody can give "High Five" to anybody except himself, while the "mark as an answer" is only available to the post initiator to indicate which post actually solves the problem.
Also, "High Five" only works (= give an extra karma point) if you have reached a certain karma yourself (I think 70 but I am not sure).
problems navigating to next page
I have created a start page called "Login" with a standard asp:login control. When i log in with the appropriate credentials i want i t to navigate to "home page"
Above you can see the site structure. When i log in the page does not redirect correctly. the url looks correct but the page still contains the login control and does not contain the correct template. Any idea what I'm doing wrong?
Hi. Try to set the "defaultUrl" attribute of the "authentication/forms" element in your web.config file to the Url of your "Home page" (you can get it from the "Properties" tab).
Is this the part your talking about?
You can also set a property on the asp:login control. Think it's the DestinationPageUrl.
Jeroen
Yes, from the structure you've presented I can guess that the configuration should look like:
or
depending on the url style you're using.
No, that didn't fix the problem.
Any other suggestions?
Could you tell how the full URL in the browser address bar looks when you come to the login page?
http://localhost:5253
and when i have logged in it looks like this
http://localhost:5253/home-page.aspx.
I took Jeroen's advise and it worked.
Thx.
Hi Jan,
Can you then maybe mark Jeroen's post as the answer to your question? This will help others that would have the same issue. Thanks!
Cheers,
Michael.
I thought i already did that when i clicked the "high five"
:-) "High Five" is to give karma points to the author of any post you find interesting. Everybody can give "High Five" to anybody except himself, while the "mark as an answer" is only available to the post initiator to indicate which post actually solves the problem.
Also, "High Five" only works (= give an extra karma point) if you have reached a certain karma yourself (I think 70 but I am not sure).
Cheers,
Michael.
is working on a reply...