0

Visual Studio 2008 で作成しました。それを DLLWeb User Controlにコンパイルして、最終的に SharePoint Web パーツで使用できるようにしたいと考えています。Web User Control

Web User Controlしかし、SharePoint でmy をコンパイルまたは使用する方法がわかりません。

これがどのように機能するか誰にもわかりませんか?

4

1 に答える 1

1

これを読んで...

あなたの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 コマンド プロンプト] をクリックします。以下のコマンドを入力し、Enter キーを押します。

devenv.exe /resetskippkgs

于 2013-01-24T11:38:34.543 に答える