Copy Code code as follows:
Dim Strok,strno
Strok = "12312321$12312312312$12312321$"
Strno = "12312321$12312312312$12312321$SDFSD"
Function regexptest (PATRN, STRNG)
Dim regEx, match, matches ' set variable.
Set regEx = New RegExp '
Createhtml
All articles generated, easy to use resources large
The first method:
Copy Code code as follows:
' Start HTML Build Way
Set rs=server.createobject ("Adodb.recordset")
Sql= "Select
This example uses a text file to write user information to create a logfile.asp placed at the top of each ASP's page When someone comes to visit your site logfile.asp automatically writes his information to LogFile.txt and does not write to the
Copy Code code as follows:
'----------------------------------------------------------------
' Introduction: Complete the ASP language to add, delete, modify, view the text of the specified node in the XML document
' Entry parameters: None
'
ASP decode URL
Copy Code code as follows:
" >asdf
decoding functions
[Code]
Function UrlDecode (ENSTR)
Dim destr,strspecial
Dim c,i,v
Destr= ""
Strspecial= "!" " #$%& ' () *+,.-_/:;?@[\]^ ' {|} ~%"
For I=1 to Len (ENSTR)
C=mid
When you add a record using the AddNew method in ASP, we often use an incremented ID, which is easy to implement with a bookmark.
Copy Code code as follows:
Rs.Open sql,conn,3,3
Rs.addnew
RS ("user") = "young Man"
RS ("pass") = "333333"
Copy Code code as follows:
' Sort
Function Sort1 (ary)
Dim Keepchecking,i,firstvalue,secondvalue
keepchecking = TRUE
Do Until keepchecking = FALSE
keepchecking = FALSE
For I = 0 to UBound (ary)
If I = UBound (ary) Then Exit for
If ary
Copy Code code as follows:
generate Baidu Xml
Dim Sid,eid
Sid=abs (Request ("Sid"))
If Sid=0 Then
Sid=0
Else
Sid=cint (Request ("Sid"))
End If
Eid=cint (Request ("Eid"))
If Eid=0 Then
eid=500
Else
Eid=cint (Request
Copy Code code as follows:
REM A section of code that implements database record paging through GetRows in ASP
Dim IStart, Ioffset
IStart = Request ("Start")
Ioffset = Request ("Offset")
If not IsNumeric (IStart) or Len (IStart) = 0
Copy Code code as follows:
strSourceFile = Server.MapPath (dataxml& "/advertisement/" &id& "/adv.xml")
Set objxml =server.createobject ("Microsoft.XMLDOM") ' creates an XML pair like
Objxml.load (strsourcefile) ' reads the XML file into
Copy Code code as follows:
13.5.1 list the data for one day, last week
SELECT distinct DateAndTime
From Ctdate_by_query_date
WHERE DateAndTime between ((#2006 -5-15#+ (Weekday (2006-5-15) -7))-6) and (#2006 -5-15#-7) +weekday (2006-5-15)
Function Description:
This code implements extracting data from Access to create an HTML file, and does not build a folder.
If the file name is the same as the file name you want to create, overwrite the same principle as the SQL update.
To add
The specific I probably use there are two kinds, need to cooperate with JQ.
First Kind, request pages directly via Ajax : for example,
1:datatype must be in HTML or text format,
2:type: Must be ' Post ' request
3: The background Load event must
Copy Code code as follows:
Dim objxml
Dim objrootelement
Dim strvalue
Dim Strineturl
Dim strxml
Dim item
Strineturl = "Http://pf.inetsolution.com/inetactive2001/inetactive2001news.xml"
Dim Httpreq
Set httpreq = Server. CreateObject
You typically extract data records from a database, you need to use a SQL statement, the query gets the related recordset, and then you select the relevant field from the Recordset, and the related record rows are displayed.
Then, in the process of
Get one of the contents of a Remote Web page (downmoon original)
First, when the local direct access to the Internet:
Get the specified Remote Web page content #region get the specified remote Web page content
Copy Code code as follows:
/
Commonly used to generate the verification Code program, the picture effect is as follows:
The source program is as follows:
Copy Code code as follows:
Using System;
Using System.IO;
Using System.Drawing;
Using
For example, I have a landing page with two labels and two textbox, the page is named Login.aspx and the control is named Lbl_username,lbl_password,txt_username,txt_password.
You can start by creating a new App_LocalResources folder on your Web
If you need to have a custom space for a asp.net application to leave a user with, such as a user's own style sheet or title for the page, use the following method to dynamically specify:
First modify the page titles and style sheets in in the ASPX
Using jsp/asp to create WAP applications
(By:darkman)
It is easy to use ASP or JSP to create dynamic WML content. The only thing to note is to configure the server to make its script output type "TEXT/VND.WAP.WML", or to set the output type
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