A class written by a foreigner, such a small application, unless there are special needs, there is no need for modularization.
Generate a random number using ASP.
''************************************** ************************************
''Class: crandom
''Calls randomize to seed the random number generator.
''Provides functions for returning ranged random integers or arrays
''Ranged random integers.
''Calling randomize to seed the random number generator at the time
''Class is created seemed
Hello, cl. This is an interesting question, or we should say that it is two very interesting questions. Because you actually asked two questions. The first question is simple: Can I use a script to open a specific web site? You probably already know the answer. I can answer you out loud! The following is an example script that stores the URL of the script center in a variable named strurl. Then, this script creates an instance of the wsh shell object and uses the run method to open the default w
Today, many inexplicable errors occur when debugging ASP programs on the local machine, such:
Microsoft VBScript compiler error: '800a03f6'
'End' missing'
/IISHelp/common/500-100.asp, row 242
Microsoft ole db provider for SQL Server Error '20140901'
And so on...
I thought it was a problem with IIS, but the failure still exists after I reinstall IIS. Then I thought about the permission problem. I don't have the permission to modify it, but I can
Microsoft VBScript runtime error'
800a
01b6'
The object does not support this attribute or method: 'response. charset'
Netbox does not support response. charset.
Open the netbox user manual and expand it one by one:Object Reference → response object → RESPONSE METHODAddheader MethodThe addheader method adds the HTML title with the specified value. This method often adds a new HTTP title to the response.SyntaxResponse. addheader name, ValueParamete
Objectcontext controls ASP Transaction Processing
Objectcontext. ontransactionabort: triggered by the abandoned Transaction Processing Event, which occurs after the script completes processing.Objectcontext. ontransactioncommit: triggered by a successful transaction processing event.Objectcontext. setabort: explicitly discard a transactionObjectcontext. setcomplete: overwrite any previous call to the objectcontext. setabort method.Msgbox "string"/strname: V
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument
/Admin456/html_makeflash.asp, line 76
The above is a prompt error, and the following is my program codeSet rs = server. Createobject ("ADODB. recordset ")Rs. Open ("Select Show from MB"), Conn, 1, 1Pencat = RS ("show ")Rs. Close
Pencat = Replace (pencat, "webname", webname)
Set FSO = server. Createobject ("scripting. FileSystemObject ")Set fout = FSO. createtextfile (serve
In vbscript statements, " H" is used for hexadecimal representation. When the '' symbol is used for string connection, a space should be added to both sides. Although it is normal to run normally without a space, but that is an incorrect or nonstandard way of writing. When a field starting with the letter "h" appears, such a statement is available:
SQL = "insert into Student (xxx, xxx) values ('" htitle "', '" hname "')"
The "statement is not c
Use loop statements
Loop is used to repeatedly execute a set of statements. Loops can be divided into three types: one type changesFalseExecute the statement repeatedly before.TrueThe statement is executed repeatedly before, and the other type repeats the statement according to the specified number of times.
The following statements can be used in VBScript:
Do... Loop: When (or until) the condition isTrueCycle.
While... Wend: when the condition isT
VBScript statement
Description
Language Element
Give control to oneSubOrFunctionProcess.
Call Statement
Declare the name of a class.
Class statement
The constant used to replace the text value.
Const statement
Declare variables and allocate buckets.
Dim statement
When a condition isTrueOr when a condition changesTrueExecute a statement block again.
Do... Loop statement
Re
Execute statement
Execute one or more specified statements.
Execute statements
RequiredStatementsA parameter is a string expression that contains one or more statements to be executed. If you wantStatementsThe parameter contains multiple statements, which should be separated by semicolons or embedded branches.Description
In VBScript,X = yThere are two possible interpretations. First, as the value assignment statementYValueX. Second, as an expression,
VBScript Functions
Function DescriptionExampleAbs (numerical value) absolute value. The absolute value of a number is its positive value. The absolute value of a null string. The uninitialized variable is definitely 0. Example: ABS (-2000)Result: 2000
Array (an Array element separated by commas) the Array function returns the value of an Array element. Example:A = Array (1, 2, 3)B = A (2)Result: 2Note: Variable B is the value of the second element of
The Escape Character of C ++ is :\
The Escape Character of VBScript is: "(double quotation marks)
Example: response. Write (" ")
Note that the double quotation marks on the red background indicate escape characters. If we omit them, the entire statement will fail and the escape characters will not be output. The output in the above example is:
Why can't it be omitted? If we omit it, the above sentence becomes: Response. Write (" ")
Because doubl
methodPublicOrPrivateKeyword, the keyword is valid for all constants in the row.
Variable, user-defined function, or VBScript internal function (suchCHR). By definition, they cannot be constants. In addition, you cannot create constants from expressions that contain operators. That is, you can only use simple constants. InSubOrFunctionThe constant declared in the process is the local constant of the process. The constant declared outside the process
VBScript object
Description
Language Element
Provides access to events of the created class.
Class Object
The object used to save the primary key and value pair of data.
Dictionary object
Contains information related to running errors.
ERR Object
Provides access to computer file systems.
FileSystemObject object
Provides access to read-only attributes matching a
Helpfile attributes
Sets or returns the complete valid path of the Help file.
Object.Helpfile[= Contextid] Parameters
Object
Required.ErrObject.
Contextid
Optional. The complete valid path of the Help file. Description
IfHelpfileWhen the Help file is specified, When you clickHelpThis file is automatically called when you press the button (or press the F1 key. IfHelpcontextIf the attribute contains the valid context ID of the specified file, the topic is automatically displayed. If not
We often encounter such errors when using cms. Below I will make these errors during the use of mobile phones. Let's take a look at the cause analysis and solutions for this problem.Error message:Microsoft VBScript compiler error: '800a03f6'The 'end'/iisHelp/common/500-100.asp is missing, line 242Request object error 'asp 0107: 66661'Stack OverflowD: WWWROOTWZYUYING_COMPOWEREASYADMIN.../Start. asp, row 172The processed data
1.VBS There is only one data type-the variant is similar to a generic type, where specific types are materialized at the time of invocation2. Declaring variables can be used with the Dim statement, public statement, private statementDeclare multiple variables separated by commascan also be implicitly declared, and directly written, but not a good way, not recommended3. Declare the array Dim A (10). Starting from 0.Dynamic arraysDim Answer () Redim Preserve Answer (+)However, when using ReDim to
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.