经典ASP。网页已过期。!错误

时间:2015-06-25 19:52:07

标签: internet-explorer vbscript asp-classic iis-7

过去2天我一直在摸不着为此寻找解决方案,我尝试了很多方法但没有用,有些人可以帮我解决这个问题。

我正在使用Classic Asp,在按钮点击事件中我加载了一个带有网格的页面,然后我从网格中选择一条记录,它将我带到另一个页面,其中显示了记录的所有细节。当我回到网格并看到另一条记录时,我在IE中收到错误“网页已过期”和“确认表单重新提交”,当我刷新页面时,我会弹出如下消息

“要再次显示网页,网络浏览器需要重新发送您之前提交的信息。”等等......

使用2个按钮重试和取消。

我点击“重试”它再次打开带有网格的页面。那么有没有办法避免错误页面和弹出窗口并直接打开带有网格的页面。

我也尝试了“获取”方法,即使这样也行不通。

我在MSDN https://support.microsoft.com/en-us/kb/183763

中添加了以下代码
<%Response.CacheControl="Public"%>

我还使用以下内容清空缓存

Response.buffer=true
Response.Expires = -1
Response.ExpiresAbsolute = Now() -1 
Response.AddHeader "pragma", "no-store"
Response.AddHeader "cache-control","no-store, no-cache, must-revalidate"

没有任何作用

2 个答案:

答案 0 :(得分:0)

除非你做了一些奇怪和/或搞砸的事,否则

CompileStoryboard Ten/AppLaunchStoryboard~ipad.storyboard
cd /Users/user/Documents/ten.ios
export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode-beta.app/Contents/Developer/usr/bin/..
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module Ten --output-partial-info-plist /Users/user/Library/Developer/Xcode/DerivedData/Ten-cggfgkxskhslfueivajzyloajadz/Build/Intermediates/Ten.build/Debug-iphonesimulator/Ten.build/AppLaunchStoryboard~ipad-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --target-device ipad --minimum-deployment-target 7.0 --output-format human-readable-text --compilation-directory /Users/user/Library/Developer/Xcode/DerivedData/Ten-cggfgkxskhslfueivajzyloajadz/Build/Products/Debug-iphonesimulator/Ten.app /Users/user/Documents/ten.ios/Ten/AppLaunchStoryboard~ipad.storyboard

2015-06-26 11:59:11.459 ibtoold[42192:13214893] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-8121.20/InterfaceBuilderKit/Document/Platform/IBIdiom.m:105
Details:  Assertion failed: !
Object:   <IBIPadIdiom: 0x7fe18ce41100>
Method:   -filePathWithTargetDeviceSuffixForBaseFilePath:
Thread:   <NSThread: 0x7fe18a714480>{number = 1, name = main}
Hints: None
Backtrace:
  0  0x000000010ac05cf5 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
  1  0x000000010ac05829 _DVTAssertionHandler (in DVTFoundation)
  2  0x000000010ac05a40 _DVTAssertionFailureHandler (in DVTFoundation)
  3  0x000000010ac059a2 _DVTAssertionFailureHandler (in DVTFoundation)
  4  0x000000010bd00df1 -[IBIdiom filePathWithTargetDeviceSuffixForBaseFilePath:] (in IDEInterfaceBuilderKit)
  5  0x000000011536276b (in IDEInterfaceBuilderCocoaTouchIntegration)
  6  0x000000010bbd0381 -[IBDocument finishCompilingWithOutputPath:options:error:] (in IDEInterfaceBuilderKit)
  7  0x000000010a9c3ff6 (in ibtoold)
  8  0x000000010a9c64dc (in ibtoold)
  9  0x000000010a9c9f15 (in ibtoold)
 10  0x000000010a9ca5c9 (in ibtoold)
 11  0x000000010a9ca4a0 (in ibtoold)
 12  0x000000010a9b9bab (in ibtoold)
 13  0x000000010a9c9b0a (in ibtoold)
 14  0x000000010a9c8d6f (in ibtoold)
 15  0x00007fff8464e5c9 start (in libdyld.dylib)
Command /Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool failed with exit code 255

不会被缓存,因此不会使&#34;网页过期&#34;消息。

你说&#34;按钮点击事件&#34; - 这是否意味着你通过Javascript做客户端的一切?如果是,您确定原始页面是通过<form method="get" action="mypage.asp"> 而不是method="get"请求的吗?

答案 1 :(得分:0)

如果您指定了网页的到期时间,则无需更改HTTP方法:response.Expires=60将在下一个小时内保持页面缓冲。

如果您使用<FORM method='post'>进行了更改,并将其更改为<FORM method='get'>,则还必须更改接收页面以查看request.querystring而不是request.form