我会自己吃饭 故事:在asp中为什么写入可以,更新和删除不行呢
来源:百度文库 编辑:杭州交通信息网 时间:2024/05/06 02:14:27
<!--#include file="conn.asp"-->
<%
if request("je")="" then
response.write "<script language=JavaScript>" & chr(13) & "alert('请输入金额');" & "history.back()" & "</script>"
Response.End
end if
dim zh,m
zh=request.form("zh")
jf=request.form("je")
m=request("je")+request("m")
set updatenew=conn.execute("update info set jf='"&jf&"',m='"&m&"' where zh='"&zh&"'")
response.write "<script language=JavaScript>" & chr(13) & "alert('添加成功!');"&"window.location.href = 'add.asp'"&" </script>"
set updatenew=nothing
%>
这是我更新代码.运行完会显示添加成功!但是access库中的数据没有变化.
<%
if request("je")="" then
response.write "<script language=JavaScript>" & chr(13) & "alert('请输入金额');" & "history.back()" & "</script>"
Response.End
end if
dim zh,m
zh=request.form("zh")
jf=request.form("je")
m=request("je")+request("m")
set updatenew=conn.execute("update info set jf='"&jf&"',m='"&m&"' where zh='"&zh&"'")
response.write "<script language=JavaScript>" & chr(13) & "alert('添加成功!');"&"window.location.href = 'add.asp'"&" </script>"
set updatenew=nothing
%>
这是我更新代码.运行完会显示添加成功!但是access库中的数据没有变化.
代码没问题
是你的系统有问题
因为你的系统的everyone用户没有写权
我的 电脑 比如你的asp程序 放在c盘
那么 右件c盘 安全 把everyone用户 所有权限都给他
如果找不到 安全
我的电脑 工具 文件夹属性 中使用简单的文件共享前面的勾去掉 然后就会有 安全选项了
在asp中为什么写入可以,更新和删除不行呢
有谁可以告诉我在asp中如何写入图片更新代码
为什么有的程序可以再p89c52中写入,但确在at89c52中不行
我怎么才能在asp对象response.write 中写入 日期和星期 早上好 程序
怎样在ASP中,用txt文本文件储存数据库,并实现读取和写入等操作??
为什么在index.htm或者index.asp网页中有写入恶意代码?
在添加和删除程序中有很多更新程序可以删吗?
在ASP。NET中(C#)如何使用SqlClient插入,更新,删除数据?
我怎么才能在asp对象response.write 中写入 日期和星期 早上好,晚上好,中午好,凌晨好 程序
一句话木马写入到ASP,ASA都可以执行,但是HTML和其他的为什么不可以