Web pages of traditional Web BBS is mostly implemented by CGI, its implementation requires programmers to master programming languages such as Perl or C, but also to understand the CGI model of the various technical content, so to make their own web
Learning | data | Database In general, a real, complete site is inseparable from the database, because the actual application, need to save a lot of data, and these data are often related to the use of the database to manage the data, can be very
ado| Programming | Data |ado 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
1, ASP file:
' EXAMPLE as: Put a 24-hour online number in the database into an Excel file
' AUTHOR: Steel Workers
' Email:hello_hhb@21cn.com
' Date:2001-3-25
' Test: Testing through in Nt4,sp6,sql SERVER 7.0,excel2000
%>
Generate Excel File
After groping and practicing, I put my own solution, written in the following:
Description
The version of my Oracle client is Oracle 9i, when the client side is installed, you cannot use the default installation, be sure to customize it, and then
After reading this Ajax example tutorial, I believe you can also easily make a beginner AJAX application.
You can also directly access: http://www.jb51.net/codes/57017.html Download the Ajax tutorial source code example.
OK, let's start with a
There are at least six ways to use the Python language for database programming. I use in the actual project, not only powerful, but also convenient and quick. Here are my experiences in work and study.
Method one: Use DAO (Data Access
This is a simple ASP page display code and in the form of ASP page display source code to provide to everyone,
The code is as follows
Copy Code
Untitled Document Dim conn,rsSet conn=server.createobject ("ADODB.
ASP Full Login code Option Explicit ' forces the browser to re-enter the server download page instead of reading the page from the cache Response.Buffer = True Response.Expires =-1 Response.ExpiresAbsolute = Now ()-1 Response.Expires = 0
db= "Db1.mdb" Path=server.mappath (DB) Set Conn=server.createobject ("ADODB. Connection ") connstr=" Provider=Microsoft.Jet.OLEDB.4.0;Data source= "&path Conn. The Open connstr Set rs=server. CreateObject ("Adodb.recordset")
%> New
Program | skills | optimization | Optimization This article will introduce you to four optimize ASP application techniques.
1. Cache frequently used data in application or session objects
ASP's application and session objects provide a convenient
pagination | show Set Con=server. CreateObject ("ADODB.") Connection ")
strconnection= "Data source=xxxxxxx;"
Con. Open strconnection
Set rs = Server.CreateObject ("ADODB.") Recordset ")
Chartsql= "Select Id,name,category_one from Goods"
Rs. Open
server|server2000|sql| Data | Database--------------------------------------------------------------------------------
Dim mode
Mode=request.form ("Text4")
If Mode=1 Then
Name=request.form ("Text1")
Age=request.form ("Text2")
Addr=request.form
For processing XMLHTTP request ASP program, look at the time is not very simple ah!??
=====
Response.contenttype= "Text/xml"
If Request.ServerVariables ("request_method") = "POST" Then
Set Req=server.createobject ("Microsoft.XMLDOM")
Req.async=false
1, ASP file:
' EXAMPLE as: Put a 24-hour online number in the database into an Excel file
' AUTHOR: Steel Workers
' Email:hello_hhb@21cn.com
' Date:2001-3-25
' Test: Testing through in Nt4,sp6,sql SERVER 7.0,excel2000
%>
Generate Excel File
Dim rs,sql,filename,fso,myfile,x
Set FSO = server. CreateObject ("Scripting.FileSystemObject")
filename = Server.MapPath ("Download.txt")
If FSO. FileExists (filename) Then
Fso. DeleteFile (filename)
End If
'--Create TXT file
Set myfile = FSO.
Personally, it's better to use update.After some tests, it was found that almost all databases use the DELETE statement, the database file size does not become smaller, so that every time the database insert operation, the database volume will be
Oh more interesting to see http://5e8.com/blog/index.asp
That's how it works. Http://pjblog.yyld.net/article.asp?id=31 from the Sun
Modify the Default.asp and recommend that you copy it as a backup before modifying it.
Found it:
Amended to
" >
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.