1 把UserControl如:UCCommentPart.ascx,放到如下路径下
 C:/Program Files/Common Files/Microsoft Shared/web server extensions/12/TEMPLATE/CONTROLTEMPLATES
 2 在布局页面中头中
 <%@ Register src="/_controltemplates/UCCommentPart.ascx" tagname="UCCommentPart" tagprefix="uc2" %>
 相应位置添加UserControl即可。
  <div>
  <uc2:UCCommentPart ID="UCCommentPart1" runat="server" />
 </div>
  3 注意,不能放在wpresources目录下。如:
  C:/Inetpub/wwwroot/wss/VirtualDirectories/10001/wpresources

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2021-11-03
  • 2021-11-16
  • 2021-12-04
  • 2022-01-09
猜你喜欢
  • 2021-12-29
  • 2021-08-18
  • 2022-02-22
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案