SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Thanks for taking a look.

I have a text box and a button on a SharePoint aspx page which will update the current SPWeb's title. The control then redirects the user to a different .aspx page in the same Web.

The web title gets updated, and all processing behaves as normal. The problem is that on this initial redirect the QuickLaunch and breadcrumb still display the old title. Only after the user manually refreshes one time do the QuickLaunch and breadcrumb elements get updated.

Here is the code:

    public string ChangeWebTitleElevated(string webUrl, string newTitle)
        string updatedTitle = "";

                using (SPSite site = new SPSite(webUrl))
                    using (SPWeb web = site.OpenWeb())
                        web.Title = newTitle;

                        web.AllowUnsafeUpdates = true;
                        web.AllowUnsafeUpdates = false;

                        updatedTitle = newTitle;

        catch(Exception ex)
            Logging.LogError("ChangeWebTitleElevated: webUrl: " + webUrl + ", New Title: " + newTitle + ", Exception: " + ex.ToString());

        return updatedTitle;

    protected void SaveProfileClick(object sender, EventArgs e)
        ChangeWebTitleElevated(SPContext.Current.Web.Url, "New Web Title");

        //Response.Expires = -1;
        //Response.Redirect(SPContext.Current.Web.Url + "/pages/home.aspx");

        SPUtility.Redirect(SPContext.Current.Web.Url + "/pages/home.aspx"), SPRedirectFlags.Static, HttpContext.Current);


As you can I've done some investigation around caching with a Response.Redirect (using Expires=-1 and SetCacheability) but they all showed the same issues.

Does anyone know of a workaround for this? Thank you in advance.


share|improve this question
This may have something to do with caching? Is it possible to refresh their cache programatically? Just a thought. – Mike Dec 10 '12 at 22:54
I can look into this, but my assumption is that if client caching is indeed the case, then a simple refresh would not solve the issue. The client would have to flush cache before he/she would be able to see changes. In this example, the user just refreshes and the QL shows up correctly. – phil Dec 10 '12 at 23:16
up vote 0 down vote accepted

The client ended up being OK with the delay and having to refresh for changes to take affect. We added a message: "please allow a few moments.." etc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.