项目中遇到这个问题几乎阻止了我两个星期的时间,确实是很郁闷。可喜的是终于解决了。先谢谢杜先生的启发。其实
SharePoint2007有一个叫做“自定义字段”类型的列表栏类型。使用他我们可以做大量的工作和业务操作,包括一些文件的上传组件
(FileUpLoad)什么的。废话少说,下面我们就一步一步做自定义字段:
首先打开vs2005创建一个项目,添加一个用户控件。删除这句代码:<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %>,修改成:<%@ Control Language="C#" Debug="true" %>
并且加上对SharePoint命名空间的注册<%@Assembly Name="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c" %>
... ...
原文地址:http://www.itkm.cn/article.asp?id=256