日期:2014-05-16  浏览次数:20815 次

ASP 问题求教
为什么我在后台操作的时候点击确认修改不好修改
后台点击确认修改后显示
form去向
<!--#include file="../xyconn.asp" -->
<!--#include file="seeion.asp" -->
<% 
id=request("id")
title=request.form("title")
BigClassID=request.form("BigClassID")
SmallClassID=request.form("SmallClassID")
img=request.form("img")
body=request.form("body")

SQL="Select * from products where id="&id
set rs=server.createobject("adodb.recordset")
rs.open SQL,conn,1,3
if rs.eof and rs.bof then
Response.Write "<script>alert('参数不正确,ID值不存在!');history.go(-1);</script>" 
Response.End()
end if
if title=""  then 
response.Write("<script language=javascript>alert('产品标题不能为空!');history.go(-1)</script>") 
response.end 
end if
if BigClassID="" then
response.Write("<script language=javascript>alert('请选择产品分类!');history.go(-1)</script>")
response.End()
end if
if SmallClassID="" then
SmallClassID=0
end if
if body=""  then 
response.Write("<script language=javascript>alert('产品内容不能为空!');history.go(-1)</script>") 
response.end 
end if
rs("title")=title
rs("BigClassID")=BigClassID
rs("SmallClassID")=SmallClassID
rs("img")=img
rs("body")=body
rs.update 
rs.close 
response.write "<script>alert('恭喜你,产品页面内容修改成功!');window.location.href='manage_products.asp';</script>" 
%> 
麻烦看下怎么回事
------解决方案--------------------
出错了,关闭ie的友好提示看具体错误,要不就用chrome或者firefox来看
------解决方案--------------------
<input type="hidden" name="id" value="<%=rsa('id')%>"> ID没有传过去。