Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i have a page.when i click on the button that i created in that page i want to going to other page(Account/loginsuccess.aspx).but when i click, browser show me first page and url has change to http://localhost/Account/login.aspx?/returnurl=%2fAccount%2fAccount%2floginsuccess.aspx and first url is (http://localhost/Account/login.aspx") and i use response.redirect(~/Account/loginsuccess.aspx) in button click event
Posted
Comments
Joezer BH 23-Jan-13 5:28am    
Show some code.

Q: What does the loginsuccess.aspx do?
Thought: sometimes is configured to return you to the last page before login was successful
_Starbug_ 23-Jan-13 5:39am    
in loginsuccess.aspx when user log to website this page show to user before he go to membershomepage.aspx

1 solution

in your web.config file authentication setting are enable ..

check your web.config for..

XML
<system.web>
   <authentication mode="Forms">
      <forms forms="401kApp" loginUrl="/login.aspx" />
   </authentication>
</system.web>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900