我在SharePoint的功能区中创建了一个自定义操作按钮,现在我正在尝试从该按钮调用一些C#后台代码。我找不到有关如何实现此操作的详细信息。是否有人知道如何执行此操作或者有任何关于此操作的好信息?不确定是否有帮助,但这是我的自定义操作按钮代码。谢谢!
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="CustomRibbonButton"
RegistrationId="101"
RegistrationType="List"
Location="CommandUI.Ribbon"
Sequence="5"
Title="Move Documents">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Documents.Manage.Controls._children">
<Button
Id="Ribbon.Documents.New.MoveButton"
Alt="Move Documents"
Sequence="5"
Command="Move_Button"
Image32by32="/_layouts/images/Skynet/WinEarth32x32.png"
Image16by16="/_layouts/images/Skynet/WinEarth16x16.png"
LabelText="Move Documents"
TemplateAlias="o1" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="Move_Button"
CommandAction="javascript:alert('SharePoint 2010 makes me angry!');" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
</Elements>