The code is as follows
Copy Code
Cache Action Classpublic class Cache{private static list _allusecachekey = new list ();private static ObjectCache _cache = Memorycache.default; Add cachekey unique Value Timeout public static void
code is as follows
copy code
function Killn (ByVal s1) ' filter numeric parameter if not IsNumeric (S1) then killn=0 Else if s1〈0 or s1〉2147483647 then Killn=0 Else killn=clng (S1) End-if end-if End Function
Dim sql_injdataSql_injdata = "' |and|or|exec|insert|select|delete|update|count|*|%| Chr|mid|master|truncate|char|declare "Sql_inj = Split (Sql_injdata, "|")If request.querystring<> "" ThenFor all SQL get in Request.QueryStringFor Sql_data=0 to
ASP get post SQL anti-injection function
'----an interception that implements the injection of a GET request-----Dim sql_injdata,sql_inj,sql_get,sql_post,sql_dataSql_injdata = "' |and|exec|insert|select|delete|update|count|*|%|
' In the ASP to collect data will generally use the ASP XMLHTTP this component to the example, many times collected in the Chinese will be garbled, we use
The BYTESTOBSTR function transformation solves the problem of collecting garbled characters.
(2) If you are using a version of VBScript 5.0 or higher, you can use the with ... End-with structure, which can also improve the performance of the ASP.
(3) Generally, avoid the use of session variables, because each session variable takes up a
For example, if the field styledesc is used, the data must be 50 bits and char characters. Can I limit only 50 bits,All characters can be entered. As long as it is char-type, it can be used as long as the database permitsIn this way, securely
The main function of the Response object in ASP Programming is to transfer data from the browser to the server to the browser client. We know that ASP scripts are executed on the server, it does not provide the "value" function. To have the output
Upload script usage The following is an example of a script Upload application. The downloaded files in this article provide the files and code in the example. Release the compressed file to a path and configure a virtual path for your network
I once worked on a complex chat room, and almost had all the functions of the BBS chat room, but it was a waste of resources because it was made using applications. I think it is more reliable and easier to use databases.You can set a database chat
21. IsObject ()FUNCTION: Returns a boolean value indicating whether an expression refers to an automation object.SYNTAX: IsObject (expression)ARGUMENTS: expression is any valid expression.EXAMPLE: Set con = Server. CreateObject ("ADODB. Connection ")
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service