Highlight ASP Article original code
Add Time: October 29, 2000 source site: China Technology Network
' File:CodeBrws.asp
' Overview:this formats and writes the text of the selected page for
' The View Script Button
' This file is provided as part
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,
Id=trim (Request.QueryString ("userid")) ' Gets the current user name, which is himself (equal to session ("UserID")
If Request.QueryString ("act") = "send" Then ' get current operation status
Who=trim (Request.Form ("who")) ' If the status is sent,
Introduction to the Basics of server scripting
First, let's review the basics of how Web Server Pages are executed:
1, the client through the browser's address bar typing address to send the request to the server side
2, the server received the
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:
User_agent=request.servervariables ("Http_user_agent")Http_reffer=request.servervariables ("Http_referer")Server_name=request.servervariables ("SERVER_NAME")' Check if the current user is Spider-Manfunction Check (user_agent)Allow_agent=split
' To get the keyword pageRemoteurl = "http://111cn.net "
' Create a XMLHTTP connectionSet Objxml = CreateObject ("Microsoft.XMLHTTP")Objxml.open "Get", Remoteurl, FalseObjxml.send
' Get the return dataResponsepage = Objxml.responsetext
Set Objxml
A lot of the previous chat room program Oh, only use two files Oh. Let me see the first HTML file.
asp Simple Chat Room program #000000 #ff0000 #008000 #0000ff #800080 #008080 #808000 to #000000 #ff0000 #008000 #0000ff #800080 #008080
Dim rs,sql,htmlcontent
Dim Channelrootdir,strinstalldir,strindexname
Dim flashid,downid,showurl,errmsg
Dim Strtitle,straddress,addtime
Dim allhits,introduce,filesize
Dim Htmlfileurl,htmlfilename,strurl
Newasp.readchannel (Channelid)
Channelrootdir =
In fact, this method to limit the number of words there are defects, that is, in the interception, English mixed words, English also intercepted by a word
The following is a modified function, for the landlord reference
The calling method does
Online Translator
' On Error Resume Next
' If the speed is slow, you can adjust the following time. Per second
Server.ScriptTimeout = 999999
'========================================================
' Character encoding function
'================
ASP Implementation Remote save Picture Source code example:ASP Implementation Remote save Picture
Function showpic (str)Set objregexp = New Regexp ' Set Configuration objectObjregexp.ignorecase = True ' ignores caseObjregexp.global = True ' Set to
In web development, I often encounter multiple keyword pairs of a single field query, I usually through a dynamic array to achieve. Of course, a number of keywords are generally used in space or, separated, I this several assumptions with a number
' =================================================== ======================= Dim Idcount ' Total Number of records Dim pages ' per page number Dim Pagec ' Total Pages Dim page ' Page Number Dim Pagenc ' Paging per page Number of page numbers
'------------------------------------------------------------
'------------------------------------------------------------CLASS paginationPublic PageSize ' How many records are displayed per pagePublic AbsolutePage ' current pagePublic BaseURL '
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