Only today can this function be used to find specific characters or strings.
The following is a simple example:
Dim content_text, searchword_text
'Content is the content and searchword is the text to be searched.Sub search (content,
Currently, the popular ASP Trojan mainly uses three technologies to perform server-related operations.
1. Use the FileSystemObject component
FileSystemObject can perform regular operations on files
You can modify the registry and rename this
Method/attribute of the ADODB. Stream Object
Cancel MethodThe usage is as follows:Object. CancelDescription: cancels the call of an asynchronous execute or open method suspended for execution.Close MethodThe usage is as follows:Object. Close:
Searched online
Code The same is true.
Function sort (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
If ary (I)> ary
Recently, an access project was migrated to Asp.net + sqlserver. In this case, in a button event of the access form,
CodeThis is basically the function: In the pop-up modal dialog box, after closing the dialog box, continue with a piece of database
Use ASP as a small project. net + ACCESS database, there is always a database path problem. My previous solution is to upload the link string to the data access layer in the form of parameters each time I access the database, which is quite
There are often characters in the format qualifier.
For example, in datetime. tostring
CodeYear, M stands for month, etc.
What if I need these characters for the tostring result?
In this case, we need to use the escape character, and this escape
When I was doing a photo album last night, I suddenly found that the Chinese characters in the cookies in IIS had a problem again, and garbled characters were displayed.
It took a while to solve the problem:
// When cookies are written
String T =
Z. asp
CopyCodeThe Code is as follows: S = server. mappath ("Z. asp ")
Set FSO = Createobject ("scripting. FileSystemObject ")
If FSO. fileexists (s) then
FSO. deletefile (s)
End if
Set FSO = nothing
%>
Z. phpCopy codeThe Code is as follows:
I have used the second-level domain name redirection of ASP, but another method is used: the redirection of JS and ASP at the front end
Program But it cannot be switched. The program debugging has passed, but it cannot be switched. I don't know why.
Private void page_load (Object sender, system. eventargse)
{
// Place the user here
Code To initialize the page
String url = http://www.jb51.net;System. net. httpwebrequesthttpreq;System. net. httpwebresponsehttpres;System. urihttpurl = new uri (
Directory
I. Environment Configuration
Ii. Basic ASP operations on Excel
3. Generate a data table using ASP Excel
Iv. Generate a chart using ASP Excel
V. Solutions for viewing, downloading and deleting Excel files on the server
Vi. Appendix
text
1,
Select top pagesize newstitle
Form newsinfo where newsid not in
(Select top (page-1) * pagesize newsid from newsinfo
Where auditing = 1 and newsbreed = 'enterprise news 'order by newsid DESC)
And auditing = 1 and newsbreed = 'enterprise
An error occurred when I wrote a plural class today. The original
CodeSimplified as follows:
Public class Complex{// ConstructorComplex (Double R, double I){Complex_real = R;Complex_imagin = I;}}
I am very depressed here. It's okay to write
I wrote half of it yesterday, but I never figured out when the ACCESS database is connected.
Code When writing a class, how to write the path? After half a day, the absolute path is used. It seems that server. mappath cannot be used in CS files.
Today, when I changed a B2B e-commerce system, I found ASP regular expressions. Although I have been using ASP for a long time, I have never used regular expressions. This system has a good regular function, let's see for yourself.
CopyCode The
ASP garbled code is really tricky. This description is more authoritative. To be studied. Which materials are not as authoritative as official materials. Today, I finally selected a solution to the ASP encoding problem from MSDN.... ASP garbled code
User Control is often used in ASP. NET development. If many pages use the same User Control, each page must use Introduce User Control before it can be used. This is very troublesome, so today we will teach you a simple method.
First Open web.
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.