Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. this.Profile is not latest after Profile.Save()

this.Profile is not latest after Profile.Save()

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NetQuestions
    wrote on last edited by
    #1

    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?

    A 1 Reply Last reply
    0
    • N NetQuestions

      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?

      A Offline
      A Offline
      adatapost
      wrote on last edited by
      #2

      Due to the sequence of event you got such result.

      A DATAPOST COMPUTER CENTRE (K.V Prajapati)

      N 1 Reply Last reply
      0
      • A adatapost

        Due to the sequence of event you got such result.

        A DATAPOST COMPUTER CENTRE (K.V Prajapati)

        N Offline
        N Offline
        NetQuestions
        wrote on last edited by
        #3

        hi Kanu, how can I correct the sequence of events? My master page will get loaded all the time, isn't? NetQuestions

        A 1 Reply Last reply
        0
        • N NetQuestions

          hi Kanu, how can I correct the sequence of events? My master page will get loaded all the time, isn't? NetQuestions

          A Offline
          A Offline
          adatapost
          wrote on last edited by
          #4

          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)

          N 1 Reply Last reply
          0
          • A adatapost

            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)

            N Offline
            N Offline
            NetQuestions
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups