An example of a template from a class to an instance
This class still has a lot of imperfections (such as efficiency), I hope we discuss together, master a lot of correct.
-----------------------------------------------------------------------
First,
How to implement Ping in ASP
Use WSH to call the system's ping command, redirect the Ping's results to a text file, and then display the text file to the Web page
The following are specific practices:
First, build one. BAT file (for example:
http://community.111cn.net/Expert/topic/3722/3722373.xml?temp=.6881372
Rs.Open "SELECT Top 3 * FROM table ORDER BY id DESC", conn,1,1
Ii=1
Do as not rs.eof%>
' id= ' img ' > ' >
Rs.movenext
Loop
Rs.close
Set rs=nothing
%>
' name=rights onclick= "
The Web page lets the user enter text in a TextBox, then stores it in the database, and then reads it out of the database and displays it on the page. It's often a problem to do this, because the textbox is actually a Windows component, and Web page
Sqlultimate.asp--part C
BuildSQL
If request ("CreateTable") <> "Create Table" Then
Response.Write ("" & vbCrLf)
End If
If request ("createtable") = "Create Table" Then
Call CreateTable ()
ElseIf strserver = "" or Request ("showconnectdb") =
If IIS is later installed, you need to first. NET executes the aspnet_regiis-i in the command tool, installs the ASP. NETFramework
Then check the configuration below:
If IIS is not installed later, check the following configuration directly:
1.
/**
@ Description: The way to get all the contents of a form in an ASP program
@ Author: Ci Qin Qiang
@Email: cqq1978@Gmail.com Http://blog.111cn.net/cqq
*/
Just now in the forum to see someone ask this question, is in the ASP how to get all the
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
3 code.asp file will leak ASP code
Problem Description:
For a very simple example, there is an. asp file in the Microsoft ASP1.0 routines, designed to view the source code for other. asp files, which is
Aspsamp/samples/code.asp. If someone uploads
'***********************************************' Procedure name: ShowPage' Function: Show "previous page next page" and other information' parameter: sfilename----link Address' Total number of totalnumber----' Maxperpage----number per page'
Using System;
Using System.IO;
Using System.Text;
Namespace superdata.asp
{
ASP Crack Program
Function:
1. Encrypt a file: encodefile (source file, target file), Encodefile (source directory, target directory, filename)
2. Decrypt a file:
Q: installation of IIS, how ASP files can not open
I'm not connected to the Internet for the time being. I have IIS installed, but the ASP files on the local machine are not open. Prompts to select the program, but lack of ie. Open IE, file "Open
What is the most effective way to reference a field value in a recordset?
So far, I have used names to refer to the values of the fields in the recordset. This can be a very inefficient approach because each call requires a lookup domain. To prove
Xi. is it a good way to collect output with a temporary string?
This question comes from the suggestion of my latest article. The core of the problem is the use of buffering, and the use of temporary strings to collect Response.Write output, so that
Dim sql_injdataSql_injdata = "Exec|insert|select|delete|update|count|*|mid|master|truncate|char|declare"Sql_inj = Split (Sql_injdata, "|")
If request.querystring<> "" ThenFor each sql_get in Request.QueryStringFor Sql_data=0 to Ubound (Sql_inj)If
Take advantage of Request.ServerVariables ("query_string") to obtain the received value (? After the parameter).
For example [Url=http://www.111cn.net/?3-8.html]http://www.111cn.net/?3-8.html[/url] Receive is 3-8.html, 3-8.html filter, only need to
The code is as follows
Copy Code
Dim Url,html,timeTime=request ("Time")Url= "Http://weather.cncn.com/get_weather.php?action=get_city&time= '" &time& "'"//Read the weather information on the CNCNHtml = Gethttppage (URL)Html=replace
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