Update web part title
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Update web part title

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Brad Clements
Guest





Posted: Fri Jan 28, 2005 10:25 pm    Post subject: Update web part title Reply with quote

I have a web part that occasionally changes its title programatically. It
does this by setting the Title property on the WebPart object and then
setting SaveProperties to true. But the new title is not displayed
immediately. The old title remains on the display until I navigate away to
another page and then return. At that point I see the new title. What do I
need to do to make the new title display immediately?
Back to top
Tarquin Simpson-Daniel
Guest





Posted: Mon Jan 31, 2005 6:47 am    Post subject: Re: Update web part title Reply with quote

a quick nasty way might be to perform a response.redirect - back to the
originating page in order to refresh it.

"Brad Clements" <BradClements@discussions.microsoft.com> wrote in message
news:041E6FA8-73BF-43D2-B930-2E4C6C787447@microsoft.com...
Quote:
I have a web part that occasionally changes its title programatically. It
does this by setting the Title property on the WebPart object and then
setting SaveProperties to true. But the new title is not displayed
immediately. The old title remains on the display until I navigate away
to
another page and then return. At that point I see the new title. What do
I
need to do to make the new title display immediately?
Back to top
Brad Clements
Guest





Posted: Mon Jan 31, 2005 6:48 am    Post subject: Re: Update web part title Reply with quote

Thanks for the suggestion, but I don't understand how to implement it. My
web part could be sitting in any of a number of different pages, so which
page would I redirect to? I guess there must be a way for a web part to
obtain the URL of the page it's embedded in. I'll do some looking and see if
I can figure out how that is done.

"Tarquin Simpson-Daniel" wrote:

Quote:
a quick nasty way might be to perform a response.redirect - back to the
originating page in order to refresh it.

"Brad Clements" <BradClements@discussions.microsoft.com> wrote in message
news:041E6FA8-73BF-43D2-B930-2E4C6C787447@microsoft.com...
I have a web part that occasionally changes its title programatically. It
does this by setting the Title property on the WebPart object and then
setting SaveProperties to true. But the new title is not displayed
immediately. The old title remains on the display until I navigate away
to
another page and then return. At that point I see the new title. What do
I
need to do to make the new title display immediately?


Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB