Click to See Complete Forum and Search --> : object tag and createobject


July 19th, 2000, 05:04 PM
What is the difference between object tag and server.createobject.

tomcat99
July 22nd, 2000, 03:40 AM
Although they seem to have the same effect there is one difference: object tag "really" creates the object only when the first method/property of the object was accessed.
Server.CreateObject will immediately create the object.

Helped?
Tomcat

August 4th, 2000, 01:37 AM
Mr tomcat99 is exactly right
object tag "really" creates the object and initializes the memory only when the first method/property of the object was accessed.
Server.CreateObject will immediately create the object and initialize the memory.

Ash

Ashfaq Ahmad
August 19th, 2000, 06:06 AM
when we create object using "object tag" then a atatic object is created and we can do this only in Global.asa, on the other hand Server's CreateObject method is used to create objects dynamically.

Ashfaq Ahmad
August 19th, 2000, 06:16 AM
yes both awnsers r right.

Srikanth Koneru
August 21st, 2000, 04:04 PM
object tag can only be created in global.asa file.
And Server.CreateObject can only be created in othere than global.asa file.

Object variables are created per session or per application basis depending on the choice u make in the tag. Server.CreateObject objects are created in the particular page

Srikanth
MarketMAx