Search code examples
objectasp-classic

Classic ASP Object


It is possible to create an "empty" Object and create Object properties on the fly in Classic ASP?

Take this JavaScript example:

var sample = new Object();
sample.prop = "Object property";
sample.prop2 = "Another property";

What is the Classic ASP equivalent? Do I have to write a class with getters and setters?


Solution

  • yes you need to create a class for that

    have a look at

    http://www.codeguru.com/csharp/.net/net_asp/tutorials/article.php/c19317/Object-Oriented-ASP-Using-Classes-in-Classic-ASP.htm