Asp網站 : Jquery構建的TreeView 樹菜單及靈活的彈出頁.小談asp的初次運用(ADODB.Recordset (0x800A0BB9) 參數類型不正確).

來源:互聯網
上載者:User

網站架構使用了三層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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.