For example, you could write a component to calculate the sales tax on a product sale. You could then call the component from a script that processes a sales order. Isolating the tax calculation from the order process enables you to update the component when the sales tax for an area changes without changing your order process. If you are familiar with COM programming, ActiveX components are Automation servers. To run on the Web server, your ActiveX components cannot have any graphical user interface elements, such as the Visual Basic MsgBox function.
Components are reusable.
A component provides one or more objects, along with the object's methods and properties. To use an object provided by a component, you create an instance of the object and assign the new instance to a variable name. Use the ASP Server. CreateObject method to create the object instance. Use your scripting language's variable assignment statement to give your object instance a name.