明輝手游網(wǎng)中心:是一個免費提供流行視頻軟件教程、在線學(xué)習(xí)分享的學(xué)習(xí)平臺!

有關(guān)ASP的一些經(jīng)常見問題(4)

[摘要]1.如何在拉動滾動條時,背景圖不動? 答:<body topmargin="0" leftmargin="0" background="bkground.JPG" bgproperties="fixed">...

1.如何在拉動滾動條時,背景圖不動?
答:<body topmargin="0" leftmargin="0" background="bkground.JPG" bgproperties="fixed">

2.Sql Server 數(shù)據(jù)庫,想用OLE db連數(shù)據(jù)庫,拜托諸位大蝦指教,怎么連呀?
答:<%
set cn=server.createobject("adodb.connection")
cn.provider="sqloledb"
cn.open "driver={SQL server};server=(Local);uid=sa;pwd=;
database=your database"
set rs=......
%>

3.如何定義一個session 數(shù)組?
答:Dim MyArray()
Redim MyArray(5)
Session("StoredArray") = MyArray
用的時候這樣:LocalArray = Session("StoredArray")
LocalArray(1) = " there"
Response.Write(LocalArray(0)&LocalArray(1)) (出處:熱點網(wǎng)絡(luò))