During the course of your programming, if you have used classes at all you will probably have also used the keyword
Withevents .
Withevents Is used when declaring an object variable, to indicate that you also wish to receive events raised by that
'================================================ ======================================
'Xdownpage ASP version
'Version 1.00
'Code by zykj2000
'Email: zykj_2000@163.net
'Bbs: http://bbs.513soft.net
'Ben
Program It can be used and modified for free.
The dictionary object replaces the collection object and provides additional languages to increase and delete records by three times faster than before.Although Visual Basic 6.0 has only a few new features, it has some powerful new object models,
Dynamic connection library (DLL) is an important way to speed up the execution of key parts of the application, but I am afraid most people do not know about it, that is, dll can be called in ASP files to speed up server execution. Next I will
Most ASP applications are inseparable from database access and operations. Therefore, we should separate the access operations on the database and encapsulate them into a separate class. If the language used supports inheritance, You can encapsulate
ASP. NET data binding
1. // call the code to hide the method, attribute, or field of the page.Generally, there are many calling attributes and Methods. Note that the scope of the called attributes, methods, or fields must be accessible on the ASPX
I. What are the disadvantages of ASP applications with two-layer structures?In Browser/Server application development, Microsoft's IIS/ASP has become popular with its powerful functions, excellent scalability, and consistency with other Microsoft
C # programming guide
Interface attributes (C # programming guide)You can declare attributes on the interface (C # reference. The following is an example of the interface indexer accesser: C # copy the code public interface isampleinterface {//
Next, we add an attribute to allow users to obtain the value of the customerid field. The corresponding sample code is as follows:
Public property get customerid () as stringCustomerid = RS ("customerid ")End PropertyPublic property let
Common codes of Lotus Notes1. Check whether the current user is the creator of the document. If not, you cannot edit the document.
Sub querymodechange (source as notesuidocument, continue as variant)
Dim session as new notessession
Dim doc as
Class Code (cls. asp)Class clsThiefPrivate strUrl 'steal addressPrivate strvalue' stolen content, all contentPrivate strResult 'steal the result. You can specify a specific part of the content.Private Flag' has been stolen'------- Initialization
MVC is an excellent design mode. In MVC design mode, m represents model, c Represents controller, V represents viewer, and is also a model layer, control layer, and view layer.Model is the place where business logic is implemented. controller
See some articles, do a VC, CB, GCC General Property Declaration macro function, by CB and Devcpp test pass, release version of efficiency without loss. I don't know what the C + + committee is eating, doing that standard library all day, but
About classes that generate a directory tree structure
This program has two files test.asp and tree.asp and some icon files
1. The test.asp call class generates the tree code as follows
tree
'========================================
'
'===================================================================
' Xdownpage ASP version
' Version 1.00
' Code by zykj2000
' Email:zykj_2000@163.net
' Bbs:http://bbs.513soft.net
' This program can be free to use, modify, I hope my program can
Copy Code code as follows:
Class Myarticle
Dim wenzhang_id
Dim title1,content1
Private Sub Class_Initialize ()
' Response. Write "Class initialization event:class_initialize"
End Sub
Private Sub Class_Terminate ()
' Response. Write
ASP Tutorial Database Tutorial Connection Class
Take into account the majority of the use of the database connection using a common process, so you need to modify the code, if you have established a database connection, the lines of comments off
Paging '===================================================================
' xdownpage ASP version
' version 1.00
' Code by zykj2000
' Email:zykj_2000@163.net
' Bbs:http://bbs.513soft.net
' This program can be free to use, modify, I
Asp. NET data binding in general
1, //calling code-behind page methods, properties, or fields
This is typically called by a number of properties and methods, pay attention to the invocation of the properties, methods or fields of the scope, must be
The datetime structure is provided in the System namespace in asp.net, and the common methods and properties of the structure are as follows:
Name
Type
Description
Date
Property
Get the date part of an instance
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.