Original ASP framework: CVASP framework 201204C released! ASP can still be so elegant!
Basic information:
Version number: 201204C
Core Bytes: 51700
Core file: cvcorem.asp
English name: CVASP -- Controller View for ASP Framework
Chinese name: CVASP framework programming language: VBScript
Character encoding: GB2312, GBK, UTF-8
Function introduction:
Easy:
Commonly used functions and classes are named concisely, and less code is written.
Several underline code generation tools are provided:
_convutf8.asp -- used to convert Chinese to UTF encoding for AJAX
_mkcvatpl.asp - Used to generate code writing templates for programming _viewsrc.asp - Used to view the source code comments of cvcore.asp. The specific effect will be known by running it with IIS manager.
The database class provides native ADODB rs and conn object instances for external use.
If you are familiar with ADO, your previous usage habits will not be affected.
Provides commonly used functional functions and worry-saving classes:
Flexible template classes, database classes, paging classes, string splicing classes, etc.:
The core code library can be used independently INCLUDE.
For example:
Safety:
The Cookie class uses scrambled Base64 encoding to prevent cookie spoofing.
Request.Form and Request.QueryString are encapsulated using the reqF and reqS functions to prevent SQL injection.
A series of functions that provide simple and effective form validation: vcnull, vclen, vcsize, vcnum, vcdate
fast:
Provides a high-performance single-layer block template class that can be used in conjunction with cache classes.
Provide high-performance string concatenation classes, such as dim sc: set sc=new clsStrCat
Provides a database class to support neat database reading operations for two-dimensional arrays in GetRows format:
Template classes are provided to separate ASP (VBS) server code from HTML interface code.
The core only provides commonly used and refined functional functions and classes, and only INCLUDE the extended functions (HELPER) if you want to use them.
Why does ASP only have Controller and View but no Model?
VBScript itself does not support class inheritance and cannot implement real MVC (no need to get into trouble!).
Open source usage statement:
You must keep the LOGO comments similar to the following in the source code and keep the cvinfo.asp description file in the directory (the cvinc directory name can be changed if you are concerned about security)