|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
ASP是依赖组件的,能访问数据库的组件好多就有好多种,再有就是你微软的工具可是什么都要收钱的啊!session|变量|数组IfyoustoreanarrayinaSessionobject,youshouldnotattempttoaltertheelementsofthestoredarraydirectly.Forexample,thefollowingscriptwillnotwork:<br>
<br>
<%Session("StoredArray")(3)="newvalue"%><br>
<br>
ThisisbecausetheSessionobjectisimplementedasacollection.ThearrayelementStoredArray(3)doesnotreceivethenewvalue.Instead,thevalueisindexedintothecollection,overwritinganyinformationstoredatthatlocation.<br>
<br>
ItisstronglyrecommendedthatifyoustoreanarrayintheSessionobject,youretrieveacopyofthearraybeforeretrievingorchanginganyoftheelementsofthearray.Whenyouaredonewiththearray,youshouldstorethearrayintheSessionobjectagainsothatanychangesyoumadearesaved.Thisisdemonstratedinthefollowingexample:<br>
<br>
---file1.asp---<br>
<%<br>
Creatingandinitializingthearray<br>
DimMyArray()<br>
RedimMyArray(5)<br>
MyArray(0)="hello"<br>
MyArray(1)="someotherstring"<br>
<br>
StoringthearrayintheSessionobject.<br>
Session("StoredArray")=MyArray<br>
<br>
Response.Redirect("file2.asp")<br>
%><br>
<br>
---file2.asp---<br>
<%<br>
RetrievingthearrayfromtheSessionObject<br>
andmodifyingitssecondelement.<br>
LocalArray=Session("StoredArray")<br>
LocalArray(1)="there"<br>
<br>
Printingoutthestring"hellothere."<br>
Response.Write(LocalArray(0)&LocalArray(1))<br>
<br>
Re-storingthearrayintheSessionobject.<br>
ThisoverwritesthevaluesinStoredArraywiththenewvalues.<br>
Session("StoredArray")=LocalArray<br>
%><br>
<br>
</p>帮助用户快速实现各种应用服务,ASP商有整合各方面资源的能力,可在短期内为用户提供所需的解决方案。例如,典型的ERP安装,如果要在客户端安装的话需要半年到二年的时间,但是美国的一些ASP商如USI和CORIO能在90—120天内提供ERP应用方案。 |
|