In programming, you often need to use transactions. A business is a series of operations that must be successful, and all other steps must be undone as long as one operation fails. For example, using ASP to develop a network hard disk system, the
One way to generate static HTML pages using only ASP+FSO, without templates (especially for content-intensive pages)
Reprint Please specify: Transfer from Http://goaler.xicp.net
FSO to generate static HTML files when the replacement template label
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
Asp+rss Reader ProductionTurn from Lingyun's blogI just made a test here. We can use it to specific applications, call their own site in the latest posts to facilitate user subscriptions.The RSS reader displays the page code as follows:
Copy
This paper uses the XML DSO data binding function to realize the separation of ASP code and HTML code, so as to realize the function of quickly changing the HTML template, because I just started to contact with XML, there are many do not understand,
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
The server object provides access to methods and properties on the server, where most of the methods and properties serve as functional services for the utility. (IIS help translation)
With the server object, you can start ActiveX object routines on
Recently help others to deal with the data, found that when adding data, prompted the
ASP cannot update. The database or object is read-only. "From the Internet to find out, also did not solve my problem."
1, the server's data directory MDB file
Dim refreshintervaltime
Refreshintervaltime = 3 ' Prevents refresh time seconds, 0 means not preventing
If Not IsEmpty (sessions ("visit")) and IsNumeric (session ("visit")) and int (refreshintervaltime) > 0 Then
if (Timer ()-int (Session ("visit"))
Simple Introduction
ASP is so simple that many developers don't think about error handling, and handling errors correctly can make your application more reasonable. I've seen many commercial Web sites written in ASP, most of them ignoring error
Operations on the database are often used. Including the connection code, SQL commands and so on, and never deliberately to remember them (I am not willing to remember this stuff), so often in the use of the time to check the books, turn over. Some
1. Support parameter pure Chinese characters? A= Mountain Old Bear
2. Support parameter gb2312 UrlEncode code:? A=%C9%EE%C9%BD%C0%CF%D0%DC
3. Support parameter UTF-8 UrlEncode code:? a=%e6%b7%b1%e5%b1%b1%e8%80%81%e7%86%8a
Copy Code code as
The server default value for this property is 90, in seconds, and we can output this value through this code:
Copy Code code as follows:
Response.Write Server.ScriptTimeout
Response.Write "Http://www.jb51.net"
%>
Because the default
ASP program does not work under Windows 2003 server, the first page is. HTML-formatted Web pages can be browsed, but unable to enter the background, click on the link to appear: The page you visit does not exist or access errors. This is when you
The following code does not replace the middle of ld
Copy Code code as follows:
function nohtml (str)
Dim re
Set re=new REGEXP
Re. IgnoreCase =true
Re. Global=true
Re. Pattern= "(\) "
Str=re.replace (str, "")
Re. Pattern=
How to delete a column in a table that repeats, for example
Table [table1]
ID Name
1 AA
2 BB
3 cc
1 AA
2 BB
3 cc
I think the last watch is like this.
ID Name
1 AA
2 BB
3 cc
Reply:
Save the record in a temporary table #t, save a duplicate record, and
Here we will introduce another way to prevent SQL injection attack in ASP, this method is not only applicable in ASP, in fact, in any language that uses ADO object model to interact with database, it may be more appropriate to say that the method of
Here is ftp/asp/php/asp. NET Environment configuration
FTP and ASP installation process
By Telnet to the VPS, click on the Computer Management role
1.1 First we choose to install their own configuration environment ASP and FTP, so as long as in
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.