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
'
Often encounter a Web site can not open the return of 500 error prompts, people helpless, that how to see the detailed error hint, find the wrong?
Now, let's take Windows XP for example
1. Open IE Browser, the "Internet Options" effect in the
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
This article uses asp.net (C #) to invoke the public webservices (http://www.webxml.com.cn/WebServices/WeatherWebService.asmx) on the Internet to implement the weather forecast, which WEB services, data from the China Meteorological Bureau
Copy Code code as follows:
Function Autolinkurls (strstring)
Dim match, matches, offset, url, email, link, relnkautolinkurl
Relnkautolinkurl = "[[%URLText%]]"
If not IsObject (REGEXP) Then Set regExp = New regExp
Regexp.global = True
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)
In fact, the principle of doing this is very simple, but we did not carefully to think how to achieve, I use here is XMLHTTP to achieve, of course, there are other ways, I will not say more.
Now look at a lot of forums are to have some "complete
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
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
I was in the photo album last night when suddenly found that the IIS under the Chinese in the cookies and there are problems, display garbled.
It took a while to solve:
When writing cookies
String T =httputility.urlencode (to be written to the
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
To determine if the server has some kind of ASP component installed, the more commonly used code is as follows:
Copy Code code as follows:
' Function: Check if system components or components are installed successfully
' Parameters:
Method One:
Copy Code code as follows:
Id=request.form ("checkbox")
Id=split (ID, ",")
Shu=0
For i=0 to UBound (ID)
Sql= "SELECT * from Jiang_fname where id=" &id (i)
Set Rs=conn.execute (SQL)
If not rs.eof then
1. Installation. NETFramework (Specific version can be selected, recommended to install NETFRAMEWORK3.5SP1)
2. Install mod_aspdotnet.so, this support apache2.2 is not easy to find, attached Http://xiazai.jb51.net/200912/tools/mod_aspdotnet-2.2.0.200
Direct replacement with regular, but no judgment function
Function formatimg (content)
Dim re
Set re=new REGEXP
Re. IgnoreCase =true
Re. Global=true
Re. pattern= "(script)"
Content=re. Replace (Content, "script")
Re. Pattern= "]*src (=|) (. [^>]*) >
First method: This is the code that deletes the picture of the word segment. Simple, because the picture field already exists in the Bookpic field of the database table.
Copy Code code as follows:
Fileid=trim (Request ("Fileid")) '
This article describes the ASP.net C # implementation of the decompression file, you need to refer to a ICSharpCode.SharpZipLib.dll for your reference, specifically as follows:
Using System;
Using System.Collections.Generic;
Using
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.