Click here to Skip to main content
15,845,785 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have this code for redirecting page..
if (loginDetail.LoginName == loginName && decryptedPassword == password)
    Session["LoginName"] = loginName;
    Session["Password"] = password;

here, if user name and password matches, page is supposed to redirect to home.aspx.. but code is not redirecting,,, no error shown on browser, the circle at title bar keeps on circling but page is not redirected... any help???
Updated 7-May-14 2:03am
Kornfeld Eliyahu Peter 7-May-14 7:00am    
Are you sure the 'if' evaluates to true?!
Vi(ky 7-May-14 7:04am    
try to debug and check if condition is true or not
Sanket Saxena 7-May-14 7:05am    
debug it and check the debugger go inside the if condition or not?
Codes DeCodes 7-May-14 7:05am    
ya ... i had used debugger and code reaches at response.redirect
Kornfeld Eliyahu Peter 7-May-14 7:16am    
You may have other Response.Redirect after this part of the code, that overrides it?
Can you extend you code sample?

1 solution

try to use another page transfer
How to: Redirect Users to Another Page[^]
Share this answer

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

  Print Answers RSS

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