本来也是很简单的一个事情,就是通过Lists Service的UpdateListItems方法来更新,这个方法有两个参数,一个是列表名称,另外一个是CAML格式的Batch Element,关键也就在于这个Batch怎么写了,但是WSS SDK中不知道为什么就说得不明不白,下面这个是新增列表项的示例:

<Batch OnError="Continue">
    <Method ID="1" Cmd="New">
        <Field Name="Title">List Title</Field>
        <Field Name="field1">Field Value</Field>
    </Method>
</Batch>

posted on 2006-09-09 02:18  刘敏(Rustle Liu)  阅读(558)  评论(1编辑  收藏  举报