Asp站点 : Jquery构建的TreeView 树菜单及灵活的弹出页.小谈asp的初次运用(ADODB.Recordset (0x800A0BB9) 参数类型不正确).
Posted on 2009-09-28 12:07 且行且思 阅读(637) 评论(0) 编辑 收藏 举报网站框架使用了三层iframe:
结合jquery类库的TreeView构建树菜单(可扩展N级菜单节点) ,如上图.
结合jquery类库的dialog.js构建框架中弹出层或表单 ,如上图中的中间小图.
Asp的心得.
---------------------------
ADODB.Recordset 错误 '800a0bb9'
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
最基础的错误,呵呵.asp 与.Net的类库有概念的差异.
asp的引用,限于文件头的<!--#include file="../Connection/SqlConnection.asp" --> ,
比较呆的引用路径.有时也因.net习惯而忽略引用
.net就相对要灵活且直观些...类,接口,dll,方法...
新建及修改数据表的示例:
id=request.Form("id")
xingming=request.Form("xingming")
bumen=request.Form("bumen")
zhiwei=request.Form("zhiwei")
shouji=request.Form("shouji")
dianhua=request.Form("dianhua")
chuanzhen=request.Form("chuanzhen")
qq=request.Form("qq")
msn=request.Form("msn")
zhanghao=request.Form("zhanghao")
mima=request.Form("mima")
kefu=request.Form("kefu")
zhaopian=request.Form("zhaopian")
'插入信息
set rs1=server.CreateObject ("adodb.recordset")
if id="" then
rs1.open "select top 1 * from yuangong ",Open_conn,1,3
rs1.addnew
else
rs1.open "select top 1 * from yuangong where id="&id&"",Open_conn,1,3
end if
rs1("xingming") =xingming
rs1("bumen") =bumen
rs1("zhiwei") =zhiwei
rs1("shouji") =shouji
rs1("dianhua") =dianhua
rs1("chuanzhen") =chuanzhen
rs1("qq") =qq
rs1("msn")=msn
rs1("zhanghao")=zhanghao
rs1("mima")=mima
rs1("kefu")=kefu
rs1("zhaopian")=zhaopian
rs1("tjshijian")=date()
rs1.update
rs1.close
set rs1=nothing
xingming=request.Form("xingming")
bumen=request.Form("bumen")
zhiwei=request.Form("zhiwei")
shouji=request.Form("shouji")
dianhua=request.Form("dianhua")
chuanzhen=request.Form("chuanzhen")
qq=request.Form("qq")
msn=request.Form("msn")
zhanghao=request.Form("zhanghao")
mima=request.Form("mima")
kefu=request.Form("kefu")
zhaopian=request.Form("zhaopian")
'插入信息
set rs1=server.CreateObject ("adodb.recordset")
if id="" then
rs1.open "select top 1 * from yuangong ",Open_conn,1,3
rs1.addnew
else
rs1.open "select top 1 * from yuangong where id="&id&"",Open_conn,1,3
end if
rs1("xingming") =xingming
rs1("bumen") =bumen
rs1("zhiwei") =zhiwei
rs1("shouji") =shouji
rs1("dianhua") =dianhua
rs1("chuanzhen") =chuanzhen
rs1("qq") =qq
rs1("msn")=msn
rs1("zhanghao")=zhanghao
rs1("mima")=mima
rs1("kefu")=kefu
rs1("zhaopian")=zhaopian
rs1("tjshijian")=date()
rs1.update
rs1.close
set rs1=nothing