First to give a form, to allow users to enter the registration information, these are HTML content, and put aside, we take a closer look at the specific implementation of the registered ASP script.
' Change the single quotation marks in the data to
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
Start the database operation.
Common Component Encapsulation
1.? Encapsulate the connection information of the database.
1>???? Returns the database connection string directly, as in the component
Public? Function? DataSource ()? As?
1, first clear which record to delete
The SQL statement, for example, corresponds to a specific ID.
id = request.form ("id")
sql = "SELECT * from Cnarticle where cn_id=" &id
Set rs = Server.CreateObject ("ADODB.") Recordset ")
Rs. Open sql,conn,2,3
2
ASP is Microsoft in the earlier launch of Dynamic Web programming technology, but its combination of ADO on the database convenient access, combining XML, Com/activex and other technologies to achieve the server multi-layer structure of the function
1. oncontextmenu= "Window.event.returnvalue=false" will completely screen the right mouse button
no available for table
2. deselect, prevent copying
3. onpaste= "return false" is not allowed to paste
4. oncopy= ' return false; ' oncut= ' return
Think of yourself to learn ASP probably also have some time. Since the beginning of 2002, I've heard of this stuff (even good dishes), to start to contact her is already 2002 November (time passed really fast), from the difficult to step out of the
Recently in the news of the background management system, in the access data imported into the SQL SERVER2000, there are a lot of problems, is summarized as follows:
You can convert access data by using the Import feature of SQL Server, but be aware
One, FSO. GetFile
Extracts files corresponding to the file object
1,getfile.asp
Whichfile=server.mappath ("Cnbruce.txt")
Set fso = CreateObject ("Scripting.FileSystemObject")
Set f1 = fso. CreateTextFile (Whichfile,true)
F1. Write ("This is a test".
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
Experiment Objective: To verify the value of active free memory variable.
Experiment Original code:
Memory Change screenshot 1:
Screenshot Explanation:
CPU waveform changes are caused by automatic page refresh, do not care! All we have to observe
' In the process of writing a program, I need to use
' For I=1 to n
"Response.Write" "
' Next
But in JavaScript I don't know the name of the test, so I thought of using ASP to automatically generate JavaScript code to verify text
' By invoking the
Today, I used too many test characters to do my membership registration test.Suddenly remembered is not make a function call convenient point。。。。The function does not know that the written rigor is notLook at you master guidance, a lot to point to
I am in the Chinese Material Network forum to see netizens ask how simple encryption, concrete implementation can write:
Forget with Asp,perl.
Write a landing form first. Suppose reg.asp
West Road Landing Page
Username
"
Password
"
In VB scripts, you don't have to define variables or define their types explicitly in other scripting languages. A variable exists the first time you use it. However, this feature makes your code widely available in typing. If you incorrectly define
Author: Thie (anoxic age)
For six months, I have completed a bureau-level unit management Information System, a total of 29 beta releases, the official version 3 times. Asp+oracle environment, 285 ASP files, functions involving data entry,
Active Server pages enables dynamic pages to be executed quickly, but by adding skills to the connection to the database in your code, you can make the program execute faster. This is an article on how to refine the script and ASP features to
Because it's simpler, I won't say anything. A look will understand!
Function Chkstr (instring)
If instring<> "" Then
Instring=replace (LCase (instring), "", "" ")
Instring=replace (LCase (instring), ";", "")
Instring=replace (LCase (instring), "'", "
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