为啥只有刷新后才能正常显示?在线等,100分伺候
网页上的超连接凡是后面有参数的,例如<a href=a.asp?id=3&zid=6>aaa</a>,点击aaa后,提示“HTTP 500 - 内部服务器错误 ”。刷新一下却能正常显示。而且这种情况只有在W98下浏览才会发生。W2000和XP下全正常。盼高手赐教 问题点数:100、回复次数:15Top
1 楼legend1970(偶不懂就来问)回复于 2004-12-03 10:01:57 得分 5
为题在a.asp,贴出来看看!Top
2 楼butcher2002(我又出来捣乱了)回复于 2004-12-03 10:10:29 得分 5
<a href="a.asp?id=3&zid=6">aaa</a>
这样还可以了Top
3 楼zhhl(张海龙)回复于 2004-12-03 10:19:34 得分 25
禁止缓存试试吧.可能是读取缓存出现的错误
Top
4 楼QQyard(网络渔夫)回复于 2004-12-03 10:24:29 得分 5
删除临时文件看看Top
5 楼lijun355(孤)回复于 2004-12-03 10:26:13 得分 15
Response.Expires = 0
Response.CacheControl = "no-cache"
试试!Top
6 楼xiaoying2004()回复于 2004-12-03 10:34:27 得分 0
http://duying.w18.1358.net/abc/default.html
上面这个地址,下面有个“sit map”的超连接,没有任何参数也有这种现象Top
7 楼whb147(苦乐随缘)回复于 2004-12-03 10:38:39 得分 15
对,可能缓存有问题,
还有就是你的那个
a.asp页面可能也有问题Top
8 楼xiaoying2004()回复于 2004-12-03 10:44:30 得分 0
http://duying.w18.1358.net/abc/default.html
我的这个页面的缓存也有问题么?它是静态页面啊,而且下面那个“sit map”的超连接也是静态页面,结果也出现这种情况Top
9 楼lover_rong(笨小孩)回复于 2004-12-03 10:45:08 得分 5
不懂,学习ing,帮顶.Top
10 楼xiaoying2004()回复于 2004-12-03 10:54:46 得分 0
我刚才测试,发现又能直接打开了,不过经常报错Top
11 楼xiaoying2004()回复于 2004-12-03 10:57:34 得分 0
我参照lijun355的提示改改代码一会再回来汇报Top
12 楼iamwaiting1980(我一直在等待)回复于 2004-12-03 11:07:51 得分 15
TO:lijun355 您、写的语法好像有问题昂!
CacheControl
The CacheControl property overrides the Private default value. When you set this property to Public, proxy servers can cache the output generated by ASP.
Syntax
Response.CacheControl [= Cache Control Header ]
Parameters
Cache Control Header
A cache control header that will be either Public or Private. Value Description
Private Only private caches may cache this page. This is the default value. Most proxy servers will not cache pages with this setting.
Public Public caches, such as proxy servers, will cache pages with this setting.
Remarks
Setting CacheControl to public may improve the perceived performance of your .asp files. If your .asp file generates custom HTML for every request, you will not improve performance by setting CacheControl to public. The values for Private and Public are strings, and must be enclosed in quotation marks (" ").
Top
13 楼iamwaiting1980(我一直在等待)回复于 2004-12-03 11:09:50 得分 5
<a href="a.asp?id=3&zid=6">aaa</a>
这样还可以了
同意,注意语法的严谨性!Top
14 楼wxq4100798(aa)回复于 2004-12-03 11:43:10 得分 5
呵呵,直接写两个页面测试,一个就单<a href="a.asp?id=3&zid=6">aaa</a>,a.asp里面,就几个字如test这类的,试试是你a.asp里问题 ,还是其它问题Top
15 楼xiaoying2004()回复于 2004-12-04 22:12:30 得分 0
我找到原因了,是我IE出了毛病。很感谢楼上各位的帮助。
下面问最后一个问题:我以前问过几个问题,也结贴了,也给分了,最起码我在后台管理处能看到已给分,并且我的可用分也确实少了。可在前台显示的却是解答的各位都是0分,所以我也不知道分究竟给没给解答者。
我怕这种现象在本贴重现,所以第一个告诉我怎么做才对的人给10分,另外90分给楼上各位Top




