为什么不刷新?
我用fso对象写了这么个程序,好像没什么问题 。
Dim fso, tf,path
Set fso = CreateObject("Scripting.FileSystemObject")
path=server.MapPath(".")
Set tf = fso.CreateTextFile(path&"\yj.txt", True)
set rs=server.CreateObject ("ADODB.RecordSet")
rs.Source="select * from pj "
rs.Open rs.source,conn,1,1
while not rs.eof
tf.WriteLine(rs("t11"))
rs.movenext
wend
tf.Close
conn.close
set conn=nothing
但有这么个现象:每次生成yj.txt后,只有把浏览器关掉,再运行一遍才能正常,否则内容一直是原来的,而我已经修改了数据表的内容了!
问题在哪呢?