Wrox Programmer Forums
|
Classic ASP Components Discussions 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 Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 6th, 2007, 07:57 AM
Registered User
 
Join Date: Feb 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ActiveX Components in asp

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.

 
Old March 8th, 2007, 03:32 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.





Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
 
Old March 9th, 2007, 07:53 AM
Authorized User
 
Join Date: Jan 2007
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saurabhj Send a message via Yahoo to saurabhj
Default

Good explaination Woodyz.

kishor,
Please read this one to understand what is COM(Component Object Modelling)...
http://www.wdvl.com/Authoring/ASP/Intro/com.html

-Saurabh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to guess around ActiveX=COM Components asgarcymed VBScript 2 December 3rd, 2007 02:08 PM
asp with ecommerce components elladi Classic ASP Components 0 May 11th, 2005 06:00 AM
office web components with asp kathryne Classic ASP Professional 1 September 29th, 2003 08:50 PM
ASP with web components kathryne Classic ASP Basics 0 September 29th, 2003 08:39 AM
Creating Activex DLL components vbmo Classic ASP Components 11 June 30th, 2003 04:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.