In chapter 17 you discuss using the Profile in the .cs files to access the user's profile data. The Profile variable seems to be valid in other pages, but in my case it does not seem to "see" the data in the database.
I am trying to redirect the user to MyProfile.aspx after login if his or her profile is missing. In Login.aspx.cs I test Profile.FirstName == String.Empty. If false I redirect to the MyProfile.aspx page with a query string subsequently displayed asking the user to fill in his profile. But on Login.aspx.cs Profile.FirstName is always String.Empty and MyProfile.aspx has blank fields. Yet when I click directly to MyProfile.aspx the fields, i.e., the TextBoxes are filled in.
What am I missing?