rs.open "select * from Collection where
id='" & id & "'",conn,1,3
rs("Sex")=trim(request("Sex"))
rs("ClassName")=trim(request("ClassName"))
rs("WebName")=trim(request("WebName"))
rs("TrueNameYear")=trim(request("TrueNameYear"))
rs("TrueNameMoon")=trim(request("TrueNameMoon"))
rs("TrueNameDay")=trim(request("TrueNameDay"))
rs("TrueNameTel")=trim(request("TrueNameTel"))
rs("TrueNameFax")=trim(request("TrueNameFax"))
rs("TrueNameMobile")=trim(request("TrueNameMobile"))
rs("TrueNameCountry")=trim(request("TrueNameCountry"))
rs("TrueNameCity")=trim(request("TrueNameCity"))
rs("Address")=trim(request("Address"))
rs("PostCode")=trim(request("PostCode"))
rs("Email")=trim(request("Email"))
rs("HomePage")=trim(request("HomePage"))
rs("bz")=trim(request("bz"))
rs.update
rs.close
set rs=nothing
response.Write "<table width=90% border=0 align=center cellpadding=0 cellspacing=0><tr><td height=80><font color=#cb6f00>
修改成功</font><br>"
response.Write "<a href=index.asp Class='mnu'>返回首页</a></td></tr></table></td></tr></table>"
end sub
%>
关键字段没有赋值。例如ID。关键字是不能为空的。