Yesterday when a customer told me that I didn't see the picture when I logged in, I didn't believe it, because my browser test found everything to be OK.Through the QQ Remote Assistance, I only found the server side really error:Microsoft VBScript Run-time error (0X800A000D)Type mismatch: ' [string: ' '] 'Check the code and find the error line:If Request.Cookies ("name") = 1 ThenStrange, why does my browser run without error, after analysis, originall
. Therefore, I need to write VBScript code to solve the file upload problem. This is not an inevitable choice, because VBScript is a scripting language that can only use the variants data type, and does not provide many built-in functions to manage binary data and byte arrays. To understand the upload process, you must first know how data is sent to the server from the browser over HTTP. This means to under
EditPlus is my most common asp/html/css development tool.
However, it only supports the automatic completion and function List of A/C + + system language, with no built-in ASP (VBSCRIPT) functionality. To facilitate my work, I simply implemented these two features by imitating the original configuration file.
Create a new ASP.ACP file first.
--------------------------------------
#TITLE =ASP/VB
; EditPlus auto-completion File v1.0 written by SNOWALK.H
The original: The function of VBScript is migrated to C#.net
VBScript 5.6 Functions
C # code
Abs
System.Math.Abs
Array
New Object () {}
ASC, AscB, AscW
Microsoft.VisualBasic.Strings.Asc
Atn
System.Math.Atan
CBool
System.Convert.ToBoolean
CByte
System.Convert.ToByte
Divisible
Integer division in ASP (VBScript) is "\", such as M = 5 \ 2, and the result is 2.
Take more
Use mod in ASP (VBScript), such as M = 5 mod 2, and the result is 1.
Large number of attention
m = 4444444444/2n = 4444444444 \ 2
The first sentence is correct, and the second sentence runs with an overflow error because: The numeric expression is rounded to a Byte, an Integer, or a Long subtype befo
Js/vbs/vbscript Encryption Code:
Description:You can complete the operation by,If there is a run error,
The second step we do a test with JS encryption above the code, the encryption effect is as follows:
In fact, we can according to the above encryption source, to decrypt the source code as follows:
Our decryption is done!
Js/vbs/vbscript Universal decoding!
Working with conditional statements
Program execution
Use conditional statements and circular statements to control the flow of scripts. Use conditional statements to write VBScript code for judging and repeating operations. The following conditional statements can be used in VBScript:
If ... Then ... Else statement
Select Case Statement
Use If ... Then ... Else to judge
If ... Then ... The Els
A simple example of a VBScript page
A simple page
Use Microsoft Internet Explorer to view pages made with the following HTML code. If you click a button on the page, you can see the results of VBScript running.
A simple home page A simple first click here">
The result is a bit simple: a dialog box displays a Latin phrase (meaning "looks very beautiful"). However, this code actually does a lot of thin
VBScript and Forms
Simple validation
With Visual Basic scripting Edition, you can accomplish a large amount of form processing that you typically do on a server, or you can do work that you cannot do on the server.
This is a simple example of client-side validation. The result of the HTML code is a text box and a button. If you use Microsoft®internet Explorer to view a page made with the following code, you will see a small text box with a button next
VBScript variables
A variable is a handy placeholder for referencing a computer's memory address that can store program information that can be changed while the script is running. For example, you can create a variable named Clickcount to store the number of times a user clicks an object on a Web page. Using a variable does not require an understanding of the variable's address in the computer's memory, as long as you can view or change the value of
In the afternoon, when I write the program, I come across a variable redefinition problem, in particular, the same variable is defined in two places in a function, and two variables are placed in two parts of the IF statement, which would have been thought to be different blocks in the statement, and should have no effect, whereas in run IIS prompts for a variable redefinition, It is correct to remove the duplicate definition.
Solved the problem suddenly thought in Fdream blog read an article "
Vbscript|vbscript Now the code is somewhat less practical than we want, we'll use class Tvprogram on other pages, so it's best to define it separately so that all faces can be invoked. Create an ASP page and name it tvprogramclass.asp, where we define class Tvprogram.
--tvprogramclass.asp--
Class Tvprogram
Private Internal_starttime
Public Property Get StartTime
StartTime = Hour (internal_starttime
Vbscript|visual because the environment of the future Microsoft. NET platform differs greatly from today, the future class can be inherited in language, that is, VB can inherit C # class and so on. The original code is translated into Managed code, and the platform provides the time to translate IL into a password and so on. VB must be in order to get rid of the fetal bone. So the Visual Basic.NET will have an absolutely big facelift, very different f
vbscript| statement |vbscript ' ////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////
' ///
'///filename: sqlbuilderforvbs
'///function: To build some simple SQL statements, combined with the form when the use, can be more convenient
'///program creator: Zeng Siyuan
'///Description: Simple SQL statement build ' class ', VBS ver
VBScript
First of all, the ASP (VBScript) class is composed of events and methods (they are members of the composition Class), if we have not been contacted, you can first look at the following instructions (haha, I am now learning to sell, say well please forgive me)In a class block, a member is declared private (private, only within a class) or public (publicly owned, which can be called outside
Vbscript| Basic Tutorials | loops | Statements use loops to execute code repeatedly
Loops are used to repeatedly execute a set of statements. Loops can be grouped into three categories: a class that repeats a statement before the condition becomes False, a class that repeats the statement before the condition becomes True, and another class repeats the statement at a specified number of times.
The following looping statements can be used in
vbscript| string |vbscript| string related articles see:
http://www.csdn.net/Develop/read_article.asp?id=22695
This article on the basis of a number of additions, add a few suitable for Chinese web site function to go in, there may be some did not add, there are interested friends can then add a little function on this basis, but don't forget to share!
Class Stringoperations
'***************************
Write in frontThanks to all the friends who came in to see. Yes, I'm currently going to write a book about unity shader.The purpose of the book is to have the following several:
Summarize my experience with unity Shader and give others a reference. I am very aware of the difficulties of learning shader, and I have seen many questions raised by people in the group. I think learning shader is still a
Internship Time: 2016.2.10--2016.2.24Internship Location: Zhongguancun book building, Haidian District, BeijingInternship Report:"One step at a time", for our college students, internship is an important part of life experience, but also an important steps, is the new era of college students to connect theory and practice the most important is the best way, for us to work Post laid a solid foundation.This choice in the Zhongguancun
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.