I have a custom web part that has the default toolpart and one additional custom property. I have a use case that requires me to be able to access the value of Title within the web part (this.Title) so that I can change its value immediately after a user changes it. However, any place I call this.Title from within my code after Apply Changes is clicked will show the previous value of the title. How can I access the just-entered Title?
Title value is "My Title".
User clicks edit web part.
User changes the title to "Different Title".
User clicks "ok" or "apply changes".
My code grabs "My Title" instead of "Different Title", although the next time the page loads, it will grab "Different Title". :(
I've tried overriding various methods like OnInit, OnPreRender, OnLoad, and CreateChildControls, but it doesn't seem like I can access the just-updated property in the page lifecycle.
Is there a simple way I can access this property in my code? Thanks.