Sharepoint的,AJAX和页面标题 [英] Sharepoint, ajax and page title

查看:149
本文介绍了Sharepoint的,AJAX和页面标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有奇怪的问题,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.

这篇关于Sharepoint的,AJAX和页面标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆