One, on Error statements
The purpose of this statement is to enable or disable an error handler. The general usage is as follows:
On Error Resume NextOn Error GoTo 0
If you are in your code
not usedOn Error Resume Next
In a Web application, when a user accesses the application, the session-type variable allows the user to share data in all pages of the Web application, and if another user accesses the Web application at the same time, he has his own session
Read a lot of data in the database.
Connecting him to a string, the format is as follows: str=1## #0 # # #1 ***2## #1 # #1_1 ***3## #1 # # ***4## #1_2 # # #2 ***5## #1_1_1 # #2 ***6## #1_1_2 # # #4 ***7# # #6 # # #1_1_1_1_1
The STR is then divided
Batch input in the application of the database is more extensive, on the volume of the method also has many kinds of input. Below I combine my practical application, talk about how I realize. The main use is the concept of the set of form, by
Copy Code code as follows:
Function Newtxt (Sz,strtxt,cityid)
Dim Ali,icount,i
Dim Ali2
Ali=split (SZ, ",")
Ali2=split (Strtxt, ",")
Icount=ubound (Ali)
Cityid = Request.QueryString ("Cityid")
If Request.QueryString ("Cityid") = "" Then
have been using JS to write ASP, is not a special reason, just learned is JS, and later learned that ASP can also use JS to write, did not go to learn VBS. A few months ago just learn ASP when the bookstore in Shenzhen did not find a copy of the
The request object in ASP is a very important object to get the client to submit the data, everybody is very familiar to him too. Even so, people often ask me how the following kinds of writing are different, in the end how to write?
strmessage =
Let ASP match MySQL
The tools needed
Mysql-4.1.11-win32
Myodbc-3.51.11-1-dll
Myodbc-3.51.11-1-win
Mysqlcc-0.9.4-win32
-------------------------------------------------------------------
Registration file
This article describes how global variables are used in two asp.net projects. web.config files and gloab files. The following are described separately:
Method One: Web.config file
--Settings:
Adding the keyword key to the web.config file is done
Maxpagestatefieldlength Properties in 1.asp.net 2.0
In asp.net 2.0, you can force viewstate to be segmented and use the Page.maxpagestatefieldlength property to set the maximum number of bytes per page state field in ViewState. The format is as
When I was doing something today, found a very strange problem, the database (SQL Server) in the field set the type is ntext, but the saved data is always very short, beginning to think that in a section of the program set a length limit, in the Set
We often use modal windows in the process of human-computer interaction, but in B/s development, this is not easy, although it can also be implemented using the window.showModalDialog function (see http://dotnet.aspx.cc/ SHOWDETAIL.ASPX?ID=49ML4AO8-5
I learned asp.net soon, using C # to write code, in the study of C # found many beginners to inheritance and polymorphism is not a special understanding, so this example, I hope to help you, the example is very simple
Paging File
Customize Information dialog box
public class MessageBox
{
Define a Web page to display user-defined error messages
System.Web.UI.Page p;
instance, the parameter is: This example: MessageBox mb=new MessageBox (this);
This parameter
Programmers who have used javastruts should know that there is a template tag in struts that, although it is more complex to use, has a lot of convenience for programs with a large number of pages. However, there is no out-of-the-box implementation
This is a batch file, copied down to save for repairasp.bat execution can ~
Echo is being repaired, this process may take several minutes, please wait ...
Copy Code code as follows:
rundll32.exe
The code is as follows:
Copy Code code as follows:
Function Replaceex (STRORI,REPLSTR)
Set regex=new REGEXP
Regex.global=true
Regex.multiline=true
regex.pattern= "\ r \ n"
Regex.ignorecase=true
Replaceex=regex.replace (STRORI,REPLSTR)
You know, in JS encodeURIComponent method is a more commonly used encoding method, but due to the work needs, in the ASP need to this method, check a lot of information, there is no good method, and finally used the following method, the basic
Copy Code code as follows:
' Get parameter values
Function GetForm (Element,ftype)
Select Case Ftype
Case "Get"
Getform=trim (Request. QueryString (Element))
Case "POST"
Getform=trim (Request. Form (Element))
Case "both"
If Isnul
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