Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint 弹出窗口关闭时页面刷新并丢失页面数据_Sharepoint_Modal Dialog - Fatal编程技术网

Sharepoint 弹出窗口关闭时页面刷新并丢失页面数据

Sharepoint 弹出窗口关闭时页面刷新并丢失页面数据,sharepoint,modal-dialog,Sharepoint,Modal Dialog,我的SharePoint网站页面中有一个转发器作为用户控件和其他字段。我需要添加记录到中继器与模态对话框的帮助。无论在弹出窗口中选择了什么,都应该进入repeater。每当我关闭弹出窗口时,我都可以刷新页面,但页面也会丢失其他字段的数据和转发器 我做错了什么吗?最后,我使用下面的代码片段通过dopostback解决了这个问题 function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theF

我的SharePoint网站页面中有一个转发器作为用户控件和其他字段。我需要添加记录到中继器与模态对话框的帮助。无论在弹出窗口中选择了什么,都应该进入repeater。每当我关闭弹出窗口时,我都可以刷新页面,但页面也会丢失其他字段的数据和转发器


我做错了什么吗?

最后,我使用下面的代码片段通过dopostback解决了这个问题

function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}