Hi,
I've been reading about and toying around w/ VS2008 for several months
now and am trying to build a website that uses the Login and Register
controls. And, a couple of subsequent pages use the ListView. I
really like the ListView, in that it's an all-in-one dbase control and
has such amazing flexibility.
I had some code which worked at one point and then stopped working,
which grabbed the UserID and stored it into state.
protected void Login1_LoggedIn(object sender, EventArgs e)
{
MembershipUser myObject = Membership.GetUser();
Session.Add("UserID", myObject.UserID);
}
Any idea what I'm doing wrong on this? I want to use this value,
UserID, to restrict data to the specific user on subsequent pages.
I'm getting an error when I try this for a real test User in my
membership dbase.
Thanks in advance!