Sputility.Redirect:此页面自您打开以来已被修改.您必须再次打开页面 [英] Sputility.Redirect : This Page has been modified since you opened it. You must open the page again

查看:130
本文介绍了Sputility.Redirect:此页面自您打开以来已被修改.您必须再次打开页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将2.0升级到4后,我面临问题,方案在几页中,我需要使用
将数据从一页转移到另一页

页面previousPage =(Page)HttpContext.Current.PreviousHandler;
如果(previousPage!= null)
{

}


这段代码使用Server.Transfer可以正常工作
但是升级后,我不得不使用Sputility.Redirect,这将导致previousPage为null.

注意:在这种情况下,如果尝试使用Server.Transfer可以正常工作,但是如果此页面上触发的任何事件给我错误

此页面自您打开以来已被修改.您必须再次打开页面.


请引导我使用如何使用Sputility.Redirect

I am facing issue after upgrading 2.0 to 4 , scenario is in few pages where i need to transfer data from one page to other page using


Page previousPage = (Page)HttpContext.Current.PreviousHandler;
if (previousPage != null)
{

}


this code worked fine using Server.Transfer
but after upgrade i had to use Sputility.Redirect this is resulting previousPage as null.

Note: In this if try using Server.Transfer it works fine but if any event fired on this page gives me error

This Page has been modified since you opened it. You must open the page again.


Please guide me using how can i achieve PreviousHandler property using Sputility.Redirect

推荐答案

只是google或bing来实现PreviousHandler属性!
https://www.nothingbutsharepoint.com/sites/devwiki/SP2007Dev/Pages/How%20to%20use%20SPUtility.Redirect.aspx [ http://msdn.microsoft.com/en-us/library/ms463664.aspx [ ^ ]
just google or bing it !
https://www.nothingbutsharepoint.com/sites/devwiki/SP2007Dev/Pages/How%20to%20use%20SPUtility.Redirect.aspx[^]

http://msdn.microsoft.com/en-us/library/ms463664.aspx[^]


这篇关于Sputility.Redirect:此页面自您打开以来已被修改.您必须再次打开页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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