我用dll封裝鏈接數據庫的代碼Asp文件中調用Conn.結果出錯asp文件源碼:SetConnDll=Server.CreateObject("Config.SqlConnection")Conndll.Db="yeekang"Conndll.uid="sa"Conndll.pwd="123456"ConnDll.ConnectionData()SetRs=Server.CreateObject("Adodb.RecordSet")Sql="Select*FromAsk"Rs.OpenSql,newConn,1,1'這里出錯Response.Write(Rs.RecordCount)config.dll源碼DimConnStrAsStringDimConnAsNewADODB.ConnectionDimrpAsResponseDimrqAsRequestDimapAsApplicationDimseAsSessionDimsrAsServerPublicDbAsStringPublicuidAsStringPublicPwdAsStringPublicSubOnStartPage(MyscAsScriptingContext),Setrp=Mysc.Response,Setrq=Mysc.Request,Setap=Mysc.Application,Setse=Mysc.Session,Setsr=Mysc.ServerEndSubPublicSubOnEndPage(),Setrp=Nothing,Setrq=Nothing,Setap=Nothing,Set
網站導航
- zblogPHP模板zbpkf
- zblog免費模板zblogfree
- zblog模板學習zblogxuexi
- zblogPHP仿站zbpfang