在aspx页面头部加入:
<%@ Control Language="c#" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.WebControls" %>


或者在vs中加入控件,然后拖拽到页面上,也会自动生成上面的代码的register部分。

相关文章:

  • 2021-05-09
  • 2021-12-27
  • 2022-12-23
  • 2021-11-16
  • 2022-01-09
  • 2021-09-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-12-29
  • 2022-01-18
相关资源
相似解决方案