Sharepoint的,AJAX和页面标题页面、标题、Sharepoint、AJAX

由网友(是Ní绑架了莪的快乐ら)分享简介:我有奇怪的问题,SharePoint和Ajax功能。我们有一个UpdatePanel放置在web部件。当局部回传时,页面标题被丢失。I have strange problem with sharepoint and ajax functionality. We have an UpdatePanel placed...

我有奇怪的问题,SharePoint和Ajax功能。我们有一个UpdatePanel放置在web部件。当局部回传时,页面标题被丢失。

I have strange problem with sharepoint and ajax functionality. We have an UpdatePanel placed inside webpart. When partial postback occurs, page title gets missing.

我们已经发现,暂时部分解决方案是写标题元素成一行,并且不使用任何空格或控制内部it..not甚至文字控制。

We have found that temporary partial solution is to write title element into one line and not use any spaces or controls inside it..not even a literal control.

但是,我们需要一些方法来为所有页面提供sommon标题,所以标题是这样的: 我默认的标题 - 当前页面的标题

But we need some way to provide sommon title for all pages, so title would look like this: My default title - Current page title

任何想法如何解决这个问题?

Any ideas how to solve this?

推荐答案

我没有提到新闻组帖子,但是这是一个已知的问题发布页面,德拉克斯提及。我已经在过去使用的解决方法是很难code中的页面标题 - 元数据标题丢失是错误的一部分。

I don't have a reference to the newsgroup post, but this is a known problem with publishing pages, as drax mentioned. The workaround I have used in the past is to hard code the title on the page - the metadata title being lost is part of the bug.

在硬编码是不可能的,我已经使用JavaScript来改变页面的标题:document.title时=称号这里修正;

When hardcoding wasn't possible, I have used javascript to change the page title: document.title = "title fixup here";

据说微软计划在未来的SharePoint版本解决这个问题。

Supposedly microsoft plans to fix this problem in the next sharepoint release.

阅读全文

相关推荐

最新文章