Classic ASP ComponentsDiscussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Components section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
hi,
first of all i am new to asp. I heard that in my project we should use classes in our asp pages. I came to know that once the class is writtern in an asp page, it can be accessed in that page only. then is there any way so that i can use my class in other asp pages and use them?
What is the advantage of Creating ActiveX component and using that component in asp file.
You can place your classes into separate files and include those files in any asp page where that class is needed. A file can contain more than one class, by the way.
I am a strong proponent of using classes in ASP projects as it provides encapsulation that is otherwise impossible to achieve in VBScript.
There are many advantages of using ActiveX components in an ASP project. For example, because this code is compiled, it will often run much faster than code you write in VBScript. The ActiveX component can take advantage of a number of features that scripting languages can not - such as using stronly typed objects and variables. ActiveX components can be placed on an application server behind a firewall to provide better security, and so on and so on.