Recently contacted a mvcpager, to make a note
In fact, I like the front and rear separation, paging this kind of thing front-end responsible place, the back end without consultants, here Mvcpager a bit reminds me of server control, after all, using
In the HTML editor release process, there will be some automatically generated HTML tags, or in the message board application process, there will be malicious writing some HTML code, so how to accurately filter out some specific attribute tags and
This code can control the common search engine cannot access the ASP page, need to include this code in each ASP page.
0) then isspider=true Next End Function Function Fromse () Dim urlrefer,searray,i Urlrefer= "refer:" &lcase (Request).
The number one killer of the script vulnerability, the database download vulnerability, is now well known to more and more people. In the era of rapid updating of information technology, the loopholes are followed by various coping strategies, such
This function is necessary, many hackers to make trouble, black database, will inject a lot of virus JS, in storage and display text data, use this function filter, can avoid a lot of trouble
clearhtml Code
' Clear HTML code function clearhtml
ASP query XML by keyword'------------------------------------------------------' Read file readtxtfile (filename)'------------------------------------------------------Function Readtxtfile (FileName)Dim Fso,f1,ts,filepathFilepath=server.mappath
--Please select--
Entire site
Current directory
Dim Fso,objfolder,objfile,strpath
Set Fso=server.createobject ("Scripting.FileSystemObject")
Strpath= "."
Call BL (strpath)
function bl (strpath)
Set Objfolder=fso.getfolder (Server.MapPath
Copy Code code as follows:
Function Copymyfolder (Foldername,folderpath)
Sfolder=server.mappath (FolderName)
Ofolder=server.mappath (FolderPath)
Set Fso=server.createobject ("Scripting.FileSystemObject")
If Fso.folderexists (Server.MapPath (
Author: Gan Ganping
Now there are some user information saved in the file, just like a simple database. Suppose a user wants to know all of the visitors, from the login
Separate the related parts from the information in the note, because there is
Author: Gan Ganping
You might think: OK, now I know how to write a file. But can you do more? Here's a try to create a search function for your Web site.
The key to building a search engine is recursion. Basically, write a section of code to
Exchange of data between ASP Chinese and database files
The application of network database is a very important part of WWW, so it can be said that if the database is missing, the network loses its soul. You can imagine, if there is no such search
Response.buffer=true
' Apply caching technology .
Dim lostnum
' prevent DMax too large and dstep too small .
Dim shownum
Delayshow (Dstep,dmax)
Sub Delayshow (Dstep,dmax)
' DMax indicates how many DMax (steps) to handle to complete the
ACCESS
Querying database types
Http://www.zengke.com/product.asp?sort_id=24 and exists (SELECT * from sysobjects)
The Query Table Admin page returns the normal display as having, the error is none.
Http://www.zengke.com//product.asp?sort_id=24 and
1,
For Web sites that you typically encounter. Net
Usually registers a user
The first choice uses the flaw which uploads the judgment to add the picture head gif89a smoothly spared
2,
The second is to inject, after the id=xx, add a single quote "'"
Jexus is Jexus Web server, referred to as JWS, is a Linux platform asp.net Web server, Linux, Unix, FreeBSD and other non-Windows systems set up asp.net Web Server Core program, is an optional solution for enterprise-level asp.net deployments across
code from the Internet, and slightly modified some places, its practical is the cache class.
Save code for, for example, pic.asp
Use: Yun_qi_img/log.gif
Not only is 163, in fact, is a lot of anti-theft pictures can be this realization.
Copy
ASP write Web proxy software, can be used as a breakthrough gateway restrictions, etc., mainly to match Ajax use (because Firefox has cross-domain access issues) version 0.1 author Llinzzi
Function
Judge the website code, support any
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