devxlogo

More Benefits of Creating Objects Using the <OBJECT> Tag

More Benefits of Creating Objects Using the <OBJECT> Tag

In a previous Tip of the Day I wrote, I advocated object creations using the tag for efficient server resource use.

Another benefit of this approach is that, for the scope of the page, a valid object is always present. Therefore, errors like “object doesn’t exist” are not encountered. Also, because all the object tags are at the top of the page, you very easily can open an ASP page and immediately find out which objects are being used in the page.

The syntax is:

  

Remember that ASP will not let you set an object that you created with the object tag equal to nothing.

devx-admin

Share the Post: