我正在尝试使用Sharepoint 2013上的其余api创建一个简单的列表项.我的代码:
$.ajax({
url: siteUrl + "/_api/web/lists/getByTitle('internal_Listname')/items",
type: "POST",
contentType: "application/json;odata=verbose",
data: JSON.stringify({
'__metadata': {
'type': 'SP.Data.internal_ListnameListItem',
},
'K1F1': k1f1Result,
}),
headers: {
"accept": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
},
success: function (data) {
console.log("done");
},
error: function (err) {
console.log(JSON.stringify(err));
}
});
Run Code Online (Sandbox Code Playgroud)
尝试发送数据时,我收到403"禁止"错误.
"error":{
"code":"-2130575251, Microsoft.SharePoint.SPException",
"message":{
"lang":"en-US",
"value":"The security validation for this page is invalid and might be corrupted. Please use your web browser's Back button to try your operation again."
}
}
Run Code Online (Sandbox Code Playgroud)
我想从转发器控件中获取最后的记录细节.有人可以帮忙吗?
更多细节:在我的数据库中插入了天数.最后一条记录显示了游览的总天数.所以我想要来自repea的最后一个记录值
我想知道Repeater控件的一些细节.如何指定转发器控件的重复计数.
例如,我有一个文本框,其中用户输入一个数字,转发器控件将显示转发器的指定数字时间记录.怎么可能呢?任何人都可以帮忙.