推薦:ASP製作登陸頁面驗證程序用戶登錄驗證腳本,Chkpwd.asp % '=======用戶登錄驗證腳本======= '如果尚未定義Passed對象,則將其定義為false,表示沒有通過驗證If IsEmpty(Session(Passed)) Then Session(Passed)=false End If 'Session(Passed)=False,表示尚未通過驗證,則開始讀取
- <%
- FunctionComma(str)
- IfNot(IsNumeric(str))Orstr=0Then
- Result=0
- ElseIfLen(Fix(str))<4Then
- Result=str
- Else
- Pos=Instr(1,str,.)
- IfPos>0Then
- Dec=Mid(str,Pos)
- Endif
- Res=StrReverse(Fix(str))
- LoopCount=1
- WhileLoopCount<=Len(Res)
- TempResultTempResult=TempResult+Mid(Res,LoopCount,3)
- LoopCountLoopCount=LoopCount+3
- IfLoopCount<=Len(Res)Then
- TempResultTempResult=TempResult+,
- EndIf
- Wend
- Result=StrReverse(TempResult)+Dec
- EndIf
- Comma=Result
- EndFunction
- %>
- <html>
- <body>
- <%
- aLongNumber=12345678
- %>
- 原來的數字:<%=aLongNumber%><br>
- 分隔後來的數字:<%=Comma(aLongNumber)%>
- </body>
- </html>
分享:ADO初學者教程:ADO 顯示顯示來自記錄集中的數據的最常用的方法,就是把數據顯示在HTML表格中。 顯示字段名稱和字段值我們有一個名為Northwind的數據庫,並且我們希望顯示出Customers表中的數據(記得以.asp為擴展名來保存這個文件): htmlbody%set conn=Server.CreateObject(