从Sharepoint 2013中的UpdatePanel回发后刷新页面 [英] Page refresh after postback from UpdatePanel in Sharepoint 2013

查看:111
本文介绍了从Sharepoint 2013中的UpdatePanel回发后刷新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!

在Apllication页面上使用Updatepanel或Sharepoint 2013中的用户控件时,会出现奇怪的行为.

Strange behavior appears when using Updatepanel on Apllication page or usercontrol in Sharepoint 2013.

在FF和Chrome中,回发会导致请求之间的闲置(大约30秒)后刷新整个页面.示例:我们在UpdatePanel中有一个带有按钮和标签的页面.我们打开此页面,然后单击按钮-> updatepanel刷新其内容而无需 页面重新加载.如果我们等待30秒以上,然后再次单击该按钮,则页面将重新加载.

In FF and Chrome postback leads to full page refresh after small idle between requests (around 30 seconds). Example: we have a page with button and label inside UpdatePanel. We open this page and click the button -> updatepanel refreshes its content without page reload. If we will wait more than 30 seconds and click the button again, page will reload. 

在Firebug或Fiddler中,我们可以看到以下内容:

In Firebug or Fiddler we can see follow:

1)从updatepanel到服务器的POST请求

1) POST-request from updatepanel to server

2)来自服务器的响应将包含

2) Response from server will contains 

1|#||4|53|pageRedirect||/_login/default.aspx?ReturnUrl=<my page url>

3)之后,将请求/_ login/default.aspx,然后重定向到 /_ windows /default.aspx?ReturnUrl=<我的页面网址>

3) After there will be request to /_login/default.aspx and then redirect to  /_windows/default.aspx?ReturnUrl=<my page url>

4)然后它将被重定向到我的初始页面.

4) And then it will be redirected to my initial page.

用户只能看到页面重新加载.

Users see only page reload.

但是如果我们等待很长时间(大约20分钟),将不会重新加载页面,并且updatepanel只会刷新其内容.

But if we will wait a long time (around 20 minutes) there will be not page reload and updatepanel refreshes only their content.

此错误发生在不同域中的不同环境中.我们使用标准的基于声明的身份验证,并且最小下载策略"功能已禁用.

This error happens in different environment in defferent domains. We use standart Claims based authentication and Minimal Download Strategy feature is disabled.

在IE中,会发生此错误,但这种情况很少发生.

In IE this error occurs, but not so often.

我发现,如果在IIS Web应用程序中禁用了表单身份验证",错误就会消失(但是在这种情况下,门户网站的其他页面中会出现一些问题).

I found that error disappears if Form Authentication is disabled in IIS web application (but in this case there are some problems in another pages in portal).

任何人都可以帮助我解决这个问题.谢谢

Can anyone help me with this problem. Thanks

推荐答案

您是否找到了解决方案?
did you ever find a solution to this?


这篇关于从Sharepoint 2013中的UpdatePanel回发后刷新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆