1. Tips for creating objects in ASP
When we use server components to create objects,
There are generally two methods. The most commonly used method is to use the CreateObject() method of the SERVER object, like this:
SETNextLink=Server.CreateObject("MSWC.NextLink")
This method is very useful, but there is another way to save system resources more.
When you use the Server.CreateObject() method to create an object, the object is loaded immediately, and the system allocates memory and other resources to the object.
The second way to create an object is to use the <OBJECT> tag of HTML, and the syntax is as follows:
<OBJECTRunat=SeverID=NextLinkProgID="MSWC.NextLink"></OBJECT>
When creating an object with the <OBJECT> tag, the object you want to create is not loaded immediately, but will not load until the method or attribute of the object is referenced for the first time. In this way, we will save some resources. Although not many, it is very helpful to save server resources when your system has to withstand nearly a million clicks a day.