Copy the following code to the head of each file to prevent SQL injection, write program security is the most important:
Dim Fy_url,fy_a,fy_x,fy_cs (), FY_CL,FY_TS,FY_ZX
'---define partial head------
FY_CL = 1 ' processing mode: 1 = hint
In the use of Server.MapPath (), there are a lot of parameters, what absolute path ah, relative path Ah, these are not complicated but easily confusing things, here will he do a collation.
Copy Code code as follows:
./Current Directory
When we do the project, we often export the database data to Excel, and many ASP users don't know how to write it.
Here Minkai summed up two ways to export Excel, I hope to help you.
Method One: Use the Excel component
Method Two: Using
To define a simple array
There are two ways to define and initialize arrays in ASP, so let's look at each of these examples:
Method One:
MyArray = Array ("Out of the Box", "Feb", "Mar", "APR", "may", "June", "may", "Aug", "Sep", "Oct", "Nov",
A. Fill out a page in a form: " >
On the Submit processing page, set the submission time
Copy Code code as follows:
If DateDiff ("s", Request.Form ("intime1"), now ()) Response.Write ""
Response.End
End If
two.
Original ASP thief program How to use XMLHTTP to implement form submission and cookies or session to send
Use XMLHTTP to make the details of the thief is outdated many people have been sent and discussed, but in the process of making ASP thieves,
Some time ago wrote an article on the call Ali is larger than the SMS interface to develop the regular SMS mass notification function of the article http://www.jb51.net/article/94142.htm, the meeting time is the most important in the demand, it
Error type:
Microsoft JET Database Engine (0X80040E10)
At least one parameter is not assigned a value.
Reason: When writing SQL statements, we often invoke some arguments, and it is possible that one of these parameters is not assigned a
The last mention of the upload image is adopted by the old Farmer's development of the component-free upload. The upload process is to save the picture to the specified folder, while saving the path to the database field. The display picture is
Are you satisfied with the database you designed for yourself? Are you sure you don't want to deal with it? For example, create a new database table, such as creating or modifying a field ... Of course, these are all part of the design database.
So,
First, understand the next principle.
1, provide text box to query the contents of the input
2, the query information submitted to the page program processing
3, the main role of the program page: to accept the query information, based on this
The Simply sets the contenttype to "application/vnd.ms-excel", which means output in Excel. The code is as follows: Datatoexcel.aspx:
http://www.w3.org/1999/xhtml" >DataToExceldatatoexcel.aspx.csUsing System;Using System.Data;Using
Formmail.htm
Copy Code code as follows:
submit form to send mail
Width= "100%" >
Name:
Sex:
Male
name= sex Type=radio value= male >
Woman
Type=radio value= Female >
Learned the FSO to extract the file value, but also learned to input the information into the file, then the following application.
Do not know you have no such habit: see a file, the unconscious right to choose to open Notepad. Oh, almost no
Copy Code code as follows:
Rs.Open sql,conn,1,1
If rs.eof and Rs.bof then
Response.Write " haven't found article "
Else
Totalput=rs.recordcount
Maxperpage=18
If CurrentpageCurrentpage=1
End If
if (currentpage-1) *maxperpage>totalput
There are many examples of web progress bars on the internet, but many are estimates of time and cannot really reflect the real progress of a task. I have made a real-time progress bar by combining multithreading and showmodaldialog, the principle
We already know that the scripts for the OnStart, onend events of the application and session objects must be declared in the Global.asa file. What kind of a file is Global.asa? What is the role of it? And how to use it? And listen to me
Using ASP to achieve the function of the search engine is a very convenient thing, but how to achieve a similar 3721 intelligent search
Where's the rope? For example, when entering "Chinese people" in the search conditions box, automatically
First of all, thanks to V37 to help me, this solution to show the "last article" and related articles of the problem, posted out for everyone to share.
I've seen a post that uses id+1 and ID-1 to judge the next article in the use of the process to
A lot of people need, there are a lot of people asked, I remember in a post made a detailed reply.
Now get it sorted out!
1, download the file
Imgchk.rar
The compressed package is a Imgchk folder with three files:
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