我Web User Control在 Visual Studio 2008 中创建了一个。我想将其编译Web User Control为 DLL,以便最终可以在 SharePoint Web 部件中使用它。
但我不知道如何Web User Control在 SharePoint 中编译或使用我的。
有人知道这是如何工作的吗?
我Web User Control在 Visual Studio 2008 中创建了一个。我想将其编译Web User Control为 DLL,以便最终可以在 SharePoint Web 部件中使用它。
但我不知道如何Web User Control在 SharePoint 中编译或使用我的。
有人知道这是如何工作的吗?
读这个...
在你的 manifest.xml 中包含这个..
<TemplateFile Location="ControlTemplates\"Your Web User Control Name".ascx" />
然后在你的 ascx 文件中包含这个...
RootFiles\TEMPLATE\ControlTemplates\"Your Web User Control Name".ascx
然后从您的 .cs 文件中调用
_value = Page.LoadControl("~/_controltemplates/"Your Web User Control Name".ascx");
编辑
试试这个...
转到开始 > 所有程序 > Visual Studio 2008 > Visual Studio 工具 > 单击 Visual Studio 2008 命令提示符。键入以下命令并按回车键。
devenv.exe /resetskippkgs