删除SharePoint生成的Div [英] Strip out SharePoint generated Div's

查看:90
本文介绍了删除SharePoint生成的Div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有三个文本字段.其中两个字段在文本之前具有以下代码:

we have three text field. two of the fields have the following code before the text:

< ExternalClass16B684B3DDEC4BFAB5CF4D9B3E3447 > < div > 测试 </ > </ div >
<div class=ExternalClass16B684B3DDEC4BFAB5CF4D9B3E3447><div>test</div></div

推荐答案

您的意思是您在页面中得到了这样的输出布局?如果是这样,替代方法将是使用自定义控件,该控件将显示特定字段的值.代替使用标准方法(覆盖RenderContents方法),您将覆盖Render方法.请注意,根据功能的不同,您的控件可能无法完全参与页面上控件的生命周期.
Do you mean that you're getting such output in the page layout? If so, alternative approach would be to use custom control which would display the value of the particular field. Instead of using the standard approach (override the RenderContents method) you would override the Render method. Please notice that depending on the functionality your control might not take full part in the life cycle of the controls on the page.


这篇关于删除SharePoint生成的Div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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