Internet Explorer从asp页面创建临时文件。 [英] Internet Explorer creates temp file from an asp page.

查看:63
本文介绍了Internet Explorer从asp页面创建临时文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的培训内容是Authorware。用户使用姓氏和

四位数登录。 Authorware将此用户标识符发送到asp页面

,称为db_read.asp。此文件将SQL SELECT命令发送到Microsoft

Access数据库。数据库返回所选的记录或

ano record。信息。 db_read.asp文件将此信息转发给

Authorware。如果返回了记录,Authorware会显示它。如果没有记录

,Authorware会显示消息您已登录第一个

时间。


稍后当用户退出Authorware时,Authorware文件将执行两个

操作之一。如果在登录后从数据库返回了一条记录,那么

Authorware运行一个名为db_update.asp的asp文件来更新

Access中的记录。如果没有记录返回,Authorware运行一个名为

db_add.asp的asp文件,将新记录添加到数据库中。


所有这些都运行正常我的电脑有IE 6.0,Win XP和IIS。我的

客户有IE 6.0,Win 2000和IIS,客户有问题。第一次

登录正确无误。 Authorware显示第一次登录

的消息退出时,会将新记录添加到数据库中。然而,在此登录期间,为文件创建了一个互联网临时文件

db_read.asp。当客户第二次使用相同的

姓氏和四位数号码登录时,屏幕会再次显示您已登录

in in first ; (屏幕应显示记录)。

退出后,数据库添加了第二条相同的记录(数据库应该是/ b $ b已更新第一条记录,而不是添加第二条记录)。


第一次登录后,如果客户删除了临时文件,则第二次

登录正确运行。


IE无法创建另外两个asp文件的临时文件。


关于如何解决这个问题的任何建议?


谢谢。


Jim Bowman

解决方案

=?Utf-8?B?SmFtZXNfMTAx?=于2005年4月9日在

microsoft.public.inetserver.asp.general:

所有这些都在我的计算机上运行正常,它有IE 6.0,Win XP和IIS。
我的客户有IE 6.0,Win 2000和IIS,客户有问题。第一次登录正确。 Authorware显示消息
您是第一次登录并在退出时,将新记录添加到数据库中。但是,在此登录期间,将为文件db_read.asp创建一个Internet
临时文件。当客户第二次使用相同的东西登录时....




好​​吧,不完全是。


asp输出的html渲染缓存在客户端上,

而不是asp文件本身。


使用:


<%Response.Expires = 0%>


再试一次。


-

Evertjan。

荷兰。

(用我的电子邮件地址替换所有带点的十字架)


谢谢Evertjan。在研究这段代码时,我有时会把它看作是
Response.Expires,其他时候它是Response.expires。大写vs

小写不重要吗?


文件db_read.asp的输出的html呈现是缓存但是

缓存文件db_add.asp和db_update.asp的输出。任何

想法为什么一个文件的输出被缓存而不是另外两个?


谢谢。


Jim


Evertjan。写道:

=?Utf-8?B?SmFtZXNfMTAx?=于2005年4月9日写在
microsoft.public.inetserver.asp.general:
< blockquote class =post_quotes>所有这些在我的计算机上运行正常,它有IE 6.0,Win XP和IIS。
我的客户有IE 6.0,Win 2000和IIS,客户有一个
问题。第一次登录正确。 Authorware显示消息
您是第一次登录并在退出时,将新记录添加到数据库中。但是,在此登录期间,将为文件db_read.asp创建一个Internet
临时文件。当客户第二次使用相同的登录时....



嗯,不完全是。

html呈现的asp输出缓存在客户端上,而不是asp文件本身。

使用:

<%Response.Expires = 0%>

然后再试一次。

- Evertjan。
荷兰。
(用我的电子邮件地址替换所有十字架点缀)



=?Utf-8?B?SmFtZXNfMTAx?=于2005年4月9日在

microsoft.public.inetserver上写道。 asp.general:

" Evertjan。"写道:

=?Utf-8?B?SmFtZXNfMTAx?=于2005年4月9日写在
microsoft.public.inetserver.asp.general:
< blockquote class =post_quotes>>所有这些都在我的计算机上运行良好,该计算机具有IE 6.0,Win XP和
> IIS。
>我的客户有IE 6.0,Win 2000和IIS,客户有一个
>问题。第一次登录正确。 Authorware显示
> messge你已经第一次登录了并在退出时,新的
>记录被添加到数据库中。但是,在此登录期间,
>为文件db_read.asp创建Internet临时文件。当
>客户第二次登录使用相同的....
>
嗯,不完全是。

asp输出的html呈现缓存在客户端上,
不是asp文件本身。

使用:

<%Response.Expires = 0%>

并尝试再次。




[请不要使用usenet]

谢谢Evertjan。在研究这段代码时,我有时会把它看作是Response.Expires,而在其他时候它是Response.expires。
大写与小写不重要吗?


不,不是。 ASP服务器指令和VBS不区分大小写。


然而Jscript是!

文件db_read.asp的输出的html呈现被缓存
但是文件db_add.asp和db_update.asp的输出没有缓存。有关为什么一个文件的输出被缓存而不是另外两个的想法?




你添加了


<%Response.Expires = 0%>


作为所有这3个asp页面文件的第一行???


-

Evertjan。

荷兰。

(用我的电子邮件地址替换所有带点的十字架)


My training piece is in Authorware. The user logs in with last name and a
four-digit number. Authorware sends this user identifier to an asp page
called db_read.asp. This file sends a SQL SELECT command to a Microsoft
Access database. The database returns either the record that was selected or
a "no record" message. The db_read.asp file relays this information to
Authorware. If a record was returned, Authorware displays it. If there is
no record, Authorware displays the message "You have logged in for the first
time".

Later when the user exits Authorware , the Authorware file takes one of two
actions. If a record was returned from the database following log-in, then
Authorware runs an asp file called db_update.asp to update the record in
Access. If no record was return, Authorware runs an asp file called
db_add.asp to add a new record to the database.

All of this runs fine on my computer which has IE 6.0, Win XP and IIS. My
customer has IE 6.0, Win 2000 and IIS and the customer has an issue. The 1st
login goes correctly. Authorware displays the messge "You have logged in for
the first time" and upon exit, a new record is added to the database. During
this login, however, an internet temporary file is created for the file
db_read.asp. When the customer logs in for the second time with the same
last name and four-digit number, the screen again displays "You have logged
in for the first time" (the screen should have displayed the record). After
exit, the database has added a second, identical record (the database should
have updated the first record, not add a second one).

After the 1st login, if the customer deletes the temporary file, the 2nd
login runs correctly.

IE does not create temporary files for the other two asp files.

Any suggestions on how I can resolve this issue?

Thanks.

Jim Bowman

解决方案

=?Utf-8?B?SmFtZXNfMTAx?= wrote on 09 apr 2005 in
microsoft.public.inetserver.asp.general:

All of this runs fine on my computer which has IE 6.0, Win XP and IIS.
My customer has IE 6.0, Win 2000 and IIS and the customer has an
issue. The 1st login goes correctly. Authorware displays the messge
"You have logged in for the first time" and upon exit, a new record is
added to the database. During this login, however, an internet
temporary file is created for the file db_read.asp. When the customer
logs in for the second time with the same ....



Well, not exactly.

The html rendering of the asp output is cached on the client,
not the asp file itself.

Use:

<% Response.Expires = 0 %>

and try again.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


Thank you Evertjan. In researching this code, sometimes I see it as
Response.Expires and at other times it''s Response.expires. Is uppercase vs
lowercase not important?

The html rendering of the output for the file db_read.asp is cached but the
output for the files db_add.asp and db_update.asp is not cached. Any
thoughts on why the output for one file is cached and not the other two?

Thank you.

Jim

"Evertjan." wrote:

=?Utf-8?B?SmFtZXNfMTAx?= wrote on 09 apr 2005 in
microsoft.public.inetserver.asp.general:

All of this runs fine on my computer which has IE 6.0, Win XP and IIS.
My customer has IE 6.0, Win 2000 and IIS and the customer has an
issue. The 1st login goes correctly. Authorware displays the messge
"You have logged in for the first time" and upon exit, a new record is
added to the database. During this login, however, an internet
temporary file is created for the file db_read.asp. When the customer
logs in for the second time with the same ....



Well, not exactly.

The html rendering of the asp output is cached on the client,
not the asp file itself.

Use:

<% Response.Expires = 0 %>

and try again.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)



=?Utf-8?B?SmFtZXNfMTAx?= wrote on 09 apr 2005 in
microsoft.public.inetserver.asp.general:

"Evertjan." wrote:

=?Utf-8?B?SmFtZXNfMTAx?= wrote on 09 apr 2005 in
microsoft.public.inetserver.asp.general:

> All of this runs fine on my computer which has IE 6.0, Win XP and
> IIS.
> My customer has IE 6.0, Win 2000 and IIS and the customer has an
> issue. The 1st login goes correctly. Authorware displays the
> messge "You have logged in for the first time" and upon exit, a new
> record is added to the database. During this login, however, an
> internet temporary file is created for the file db_read.asp. When
> the customer logs in for the second time with the same ....
>
Well, not exactly.

The html rendering of the asp output is cached on the client,
not the asp file itself.

Use:

<% Response.Expires = 0 %>

and try again.



[please do not toppost on usenet]
Thank you Evertjan. In researching this code, sometimes I see it as
Response.Expires and at other times it''s Response.expires. Is
uppercase vs lowercase not important?
No it is not. ASP server directives and VBS are not case sensitive.

However Jscript is!
The html rendering of the output for the file db_read.asp is cached
but the output for the files db_add.asp and db_update.asp is not
cached. Any thoughts on why the output for one file is cached and not
the other two?



Did you add

<% Response.Expires = 0 %>

as the first line of all these 3 asp pagefiles???

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


这篇关于Internet Explorer从asp页面创建临时文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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