Hi,
I have a folder which is secured using forms authentication.
I have a hyperlink on my menu that points to a form with-in this folder.
When I click on this link my Login.aspx form pops up, credentials are validated against a database and then it redirects to the initial requested page.
Everything works fine on my development machine.
When I upload the site I encounter the following problem.
I click on the link, the Login.aspx form pops up, I enter valid login details but it just keeps displaying the Login.aspx form over and over (I have checked that the login details are definitely correct).
If instead of clicking on the hyperlink, I type the url into the browser (copied and pasted from the code behind the hyperlink just to ensure it's identical), the Login.aspx window pops up, I enter the valid login details and it works!?
BTW I changed the hyperlink to be a complete path (e.g. Folder/file.aspx) not just a relative one just to see that was the problem and still no joy.
Any thoughts gratefully received...
There are two ways to write error-free programs; only the third one works.
I have a folder which is secured using forms authentication.
I have a hyperlink on my menu that points to a form with-in this folder.
When I click on this link my Login.aspx form pops up, credentials are validated against a database and then it redirects to the initial requested page.
Everything works fine on my development machine.
When I upload the site I encounter the following problem.
I click on the link, the Login.aspx form pops up, I enter valid login details but it just keeps displaying the Login.aspx form over and over (I have checked that the login details are definitely correct).
If instead of clicking on the hyperlink, I type the url into the browser (copied and pasted from the code behind the hyperlink just to ensure it's identical), the Login.aspx window pops up, I enter the valid login details and it works!?
BTW I changed the hyperlink to be a complete path (e.g. Folder/file.aspx) not just a relative one just to see that was the problem and still no joy.
Any thoughts gratefully received...
There are two ways to write error-free programs; only the third one works.