If the title is too long, because the page layout limit, can only list 10 characters, this function will help you achieve
Copy Code code as follows:
' Intercept string strvalue (title, Word count)
function strvalue (str,lennum)
Dim
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
Analysis may be: Some of the ASP's reserved fields, the specific people can refer to this article: ASP common reserved word collation
Normally, the code is fine. The ID has a value but the library has been changed to SQL Server Library for a long
When we typically generate HTML static pages, we often do a template in advance and then call the template file when we generate it. Then there is no way to use templates, such as a normal htmer.asp page, directly into the htmer.html page? Of course
' ', ' ' ', ' ', ' ', ' ', ' ', ' ' ' ' ' "" "" "", "" "," "," "", "", "", "" strtext " Strstartag for the beginning of the content to be cut "'" "" "" "" "' Strendtag" for the end of the content to be cut "" ' "' '" ' GetText return value is cut
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 (
Copy Code code as follows:
Set js = Server. CreateObject ("ADODB.") RecordSet ")
Sql= "SELECT top * from article ORDER BY id DESC"
Set JS = conn. Execute (SQL)
Do as not js.eof
Title=js ("title")
Addate=js ("Addate")
Foolcat = Foolcat +
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
The basics are discussed, and then there is the question of permission permission. FSO to create its user account permissions to run, in other words, if someone from the Internet
To access your page, the Internet account
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
The search engine is composed of an ASP file of an HTM file, mainly uses the FileSystemObject component to achieve the goal, the function is formidable, after modifies the interface may use directly, certainly adds a little own thing to be even
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
The spread of the Internet can be implemented using Mswinsock controls, which is not a good drop. Because this is a third party component, oh, the probability is quite small, since to kill the dead, hehe, sure to adopt a set of means of
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
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