Recommended: ASP creates login page verification program User login verification script, Chkpwd.asp % '========= User login verification script====== 'If Passed object has not been defined yet, define it as false, which means that the verification has not been passed. If IsEmpty(Session(Passed)) Then Session(Passed)=false End If 'Session(Passed)=False, it means that the verification has not been passed, and then reading begins.
- <%
- FunctionComma(str)
- IfNot(IsNumeric(str))Ostr=0Then
- Results=0
- ElseIfLen(Fix(str))<4Then
- Results=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
- %>
- Original number: <%=aLongNumber%><br>
- Separate the number afterwards: <%=Comma(aLongNumber)%>
- </body>
- </html>
Share: ADO beginner tutorial: ADO display The most common way to display data from a record set is to display the data in an HTML table. Show field names and field values We have a database named Northwind, and we want to display the data in the Customers table (remember to save this file with .asp as the extension): htmlbody%set conn=Server.CreateObject(