this.Profile is not latest after Profile.Save()
-
I updated my profile information and saved profile by invoking Profile.Save. Immediately after calling Profile.Save, when control excutes page_load in master page, I observe that this.Profile gives me old/original data. I updated my profile a second time, and now in the page_load of master page, i get the 1st updated profile information. Is there any refreshing that I should perform to have this.Profile provide latest information immediately after updating the profile?
-
I updated my profile information and saved profile by invoking Profile.Save. Immediately after calling Profile.Save, when control excutes page_load in master page, I observe that this.Profile gives me old/original data. I updated my profile a second time, and now in the page_load of master page, i get the 1st updated profile information. Is there any refreshing that I should perform to have this.Profile provide latest information immediately after updating the profile?
-
Due to the sequence of event you got such result.
A DATAPOST COMPUTER CENTRE (K.V Prajapati)
hi Kanu, how can I correct the sequence of events? My master page will get loaded all the time, isn't? NetQuestions
-
hi Kanu, how can I correct the sequence of events? My master page will get loaded all the time, isn't? NetQuestions
-
But you are saving profile after that and the new value of profile will not available to you until postback. Isn't it?
A DATAPOST COMPUTER CENTRE (K.V Prajapati)
you are correct Kanu ... i put break point and observed that update was the last operation performed. so now after update i execute response.redirect(profile.aspx). thanks, netquestions