asp删除文件的问题
<a href="/delfile.asp?action=test.rar">删除test.rar文件 </a>
以下的代码为什么删除不了文件
<a href="/delfile.asp?action=test.rar">删除test.rar文件 </a>
<%
struploadfiles=trim(request.querystring("struploadfiles"))
action=trim(request.querystring("action"))
response.write "成功删除 <font color=red>"&struploadfiles&" </font>文件!"
call delfiles(struploadfiles & "")
sub delfiles(struploadfiles)
if struploadfiles="" then exit sub
dim fso,arruploadfiles,i
set fso = createobject("scripting.filesystemobject")
fso.deletefile(server.mappath("" & struploadfiles))
set fso = nothing
response.Write(" <script>alert('删除文件成功!');location.href='../import.asp' </script>")
end sub
%>
<%
action=trim(request("Action"))
if request("action") <>"" then
set fso = server.CreateObject("scripting.filesystemobject")
fso.deletefile server.mappath(Request("FileName"))
set fso = nothing
end if
response.Write(" <script>alert('删除文件成功!');location.href='../import.asp' </script>&quo
相关问答:
http://www.zgjhjy.com/Test/PrimaryTest/Index.aspx
就是类似以上的在线测试系统,需要有一个后台的,语言是asp的,数据库是access的,还需要能在后台对信息进行添删改查的。谢谢各位了。。。
程序真的很多,不知 ......
哪位大哥有没有ASP.NET中利用Cookies实现用户自动登录的代码...谢谢了...越详细越好....
什么意思?自动登录?
mark 貌视是存储cookies 我也对cook比较迷糊 关注下
既然你知道用cookies自己动动大脑多好! ......
哪里出错了,输出这样的结果??
<%@ Page Language="VB" AutoEventWireup="false" aspcompat="true" CodeFile="Default.aspx.vb" Inherits="_Default" %&g ......
搜索了半天,都没发现怎么删除Cookies子键的,
有一些,也是说的.net的,
HTML code:
Response.Cookies("xx")("1")="11"
Response.Cookies("xx")("2") ......