推荐: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(