ContentPlaceHolder只能在.master文件中使用. [英] ContentPlaceHolder can only be used in .master files.

查看:108
本文介绍了ContentPlaceHolder只能在.master文件中使用.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

陷入一个奇怪的问题.

am stuck with a weird issue.

我们有一个SharePoint 2010 Intranet.上周,我们进行了一项调查.我们通过SharePoint设计器编辑了overview.aspx文件,并添加了JavaScript以隐藏响应"链接.一切都按预期进行.

We have a SharePoint 2010 intranet. Last week we created a survey. We through SharePoint designer edited the overview.aspx file and added javascript to hide the Responses links. All was working as expected.

但是今天;

  1. 转到文件>列表> MySurvery>打开了overview.aspx
  2. 保存文件
  3. 但是后来我得到了这个错误
  1. Opened SharePoint Designer
  2. Went to Files > Lists > MySurvery > Opened the overview.aspx
  3. Add below css after existing css #WebPartWPQ2{ display:none;}
  4. Save the file
  5. Opened file in browser.
  6. But then i am getting this error

ContentPlaceHolder can only be used in .master files.

am trying to edit the overview.aspx file any changes getting this error in browser after checkin.

请提出我可能做错了什么.请告知是否需要其他详细信息.

Kindly suggest what i could be doing wrong. Kindly let know if any further details required.

推荐答案

您好,您不应该在Designer中弄乱调查.而是使用内容编辑器Web部件删除链接.
Hi shoab- you shouldn't mess with surveys in Designer. Instead, use a content editor web part to remove the links.


这篇关于ContentPlaceHolder只能在.master文件中使用.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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