SharePoint控件的使用

在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部分。
原文地址:https://www.cnblogs.com/chenfulai/p/1227973.html