Recommended: ASP 3.0 Advanced Programming (33) 7.4.2 VBScript Error Handling In VBScript, the script interpreter can not handle any errors it finds, and continue to run the next statement using the On Error Resume Next statement. Once this statement has been processed, the script engine will continue to run the subsequent program.
Calculate the page, hehe, you can do it in one go without judgment
| The following is the quoted content: intNumPage = Abs(Int(-(intNumRecord/intPerPage))) |
Format the date into RFC822 format, the previous method is troublesome, look at this simple one
| The following is the quoted content: Function DateToRFC822(byVal dtaVal) Dim strCurLocale : strCurLocale = GetLocale() SetLocale(en-gb) dtaVal = CDate(dtaVal) DateToRFC822 = WeekdayName(Weekday(dtaVal),True)&,&_ Right(0&Day(dtaVal),2)& &_ MonthName(Month(dtaVal),True)& &_ Year(dtaVal)& &_ Right(0&Hour(dtaVal),2)&:&_ Right(0&Minute(dtaVal),2)&:& _ Right(0&Second(dtaVal),2)& & _ 0800 SetLocale(strCurLocale) End Function |
Share: Use ASP to develop web sites Generally, large-scale websites are less and less likely to use ASP for architecture, but ASP still occupies a large market scope in small and medium-sized business sites. ASP is favored by small and medium-sized site administrators for its simple, short development cycle and easy maintenance. However, as far as I know