a really simple question about editProfile.aspx
it has on it UserProfile.ascx which has a UserName Property and I can see in manageUsers.aspx how this property is set using a querystring and that opens EditUser.aspx and fills it with the right stuff
but if you log in say as admin/admin and you go to EditProfile.aspx (by using the Edit Profile link in the master's login area, how does the EditProfile.aspx ever inform the UserProfile.ascx which profile to fill itself up with
maybe I'm being stupid, or I'm a bit crazy but right now I can see how the user control manages the locate the correct (i.e current profile)
or is this (in the page_load) of the user control
// if the UserName property contains an emtpy string, retrieve the profile
// for the current user, otherwise for the specified user
ProfileCommon profile = this.Profile;
if (this.UserName.Length > 0)
profile = this.Profile.GetProfile(this.UserName);
is that code saying...load up this.Profile, i.e the current profile unless you are called from ManageUsers.aspx?
is that it, if so that is really ingenious
nices sites you guys have done btw based on TheBeerHouse, it's quite humbling
Regards and thx in advance
CharlesA
|