The code is as follows
Copy Code
' Set up file system objectsSet File_system=createobject ("Scripting.FileSystemObject")' Set up the current directory objectSet Cur_folder=file_system.getfolder (C_path)' Create a collection of
...Keyword=split (Request.Form ("TextField")) ' separates multiple keywords with spaces and saves them in keyword arrayStr= ""For the i=0 to UBound (keyword) ' UBound function to get the maximum subscript value of the array, link multiple keywords
Dim CurrentPage ' Defines the current page
Dim filename ' filename
Const maxperpage=20 ' number of records displayed per page
Dim Totalnumber ' Total Records
Filename= "Showpages.asp"
totalnumber=200 ' Set record total of 200
If not IsEmpty (Request
As Microsoft launched the Web page and database solution, ASP because of Microsoft's unique operating system and other technical backing support, so has been rapid development, and is receiving more and more welcome, in the current E-commerce site
There are two main types of ASP acquisition parameters:Request.QueryString (Get) or Request.Form (POST)We sometimes write Id=request ("ID") to simplify the code, because there is a problem with the writing ...
The original Web service reads data
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|*|%|
The code is as follows
Copy Code
Dim Rs,sql,foundstrDim Classid,childstrDim Rssbody,rsstitle,rsshomepageurlDim Xmldom,node,cnode,cnode1,msginfoSet xmldom = Server.CreateObject ("Microsoft.FreeThreadedXMLDOM")Xmldom.appendchild
Sometimes we need to give users some feedback when writing ASP, this custom return information function is very convenient for everyone to use
' ************************
' subroutine name: Information Prompt window
' function: Informational prompt,
ProblemHow the Web API supports common OData system query entries, such as $select or $filter.Solution SolutionsIn order to enable query entries in the Web API, we need to use Enablequeryattribute on the Action.If the Action does not return a
Display progress bar style for exporting JSP data by page. Why is jsp too harmful? /A> jsp upstream> upstream
1. Ideas
Query data by PAGE and cache the progress (total data ratio of the currently retrieved data points)
2. The interface progress bar
There are many people who understand ASP (Active Server Pages), but there are not many people who can use ASP to freely call ActiveX controls. If you do not call ActiveX controls, it can be said that Microsoft's original intention to design ASP was
Using Active Server Pages to Build Microsoft Word Documents EntsBy Gardiner B. JonesBackgroundBuildDoc. asp is an Active Server Page (ASP) that reads the output ofWeb page form, and creates as output a Microsoft Word document contaiNing a table of
II. Construction1. Build the main formFirst, we need to provide a form that allows users to enter registration information. These are HTML content and put them aside. Let's take a closer look at the specific ASP script for registration.(1) change
1. About parameter transfer. Suppose there are 46 records in the table, and then we typed http. // localhost/display. asp? In the address bar? Line = 10 & page = 2 (assuming this is the correct path) the browser will show us ten records on the
III. Survey form generation and result analysisAuthor: Cactus studio PollWriter. asp first checks the Form variables, including the survey project name PollName and (optional) string LinkText and LinkURL. LinkText and LinkURL describe the URL
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
'Function: format the display time according to the specified parameter.'Numformat = 1: convert the time to yyyy-mm-dd hh: nn format.'Numformat = 2: convert the time to yyyy-mm-dd format.'Numformat = 3: convert the time to hh: nn format.'Numformat =
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