Author: hello lol | Posted on: 11/4/2010 1:56:55 PM | Views : 289

When a user logs in, I want to check whether they have a name or not. I have the following code, but it doesn't work right:
if (Profile.Name=="") { Response.Redirect("Settings.aspx"); } else { Response.Redirect("~/"); }
 
When the user logs in and he/she doesn't have a name, it goes to the settings page, however if the user logs in and they do have a name, it still takes them to the settings page. Why? How can I fix this?
...

Go to the complete details ...