p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 6th, 2007, 07:57 AM
Registered User
 
Join Date: Feb 2007
Location: , , .
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old March 8th, 2007, 03:32 PM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old March 9th, 2007, 07:53 AM
Authorized User
 
Join Date: Jan 2007
Location: , , India.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 07:00 AM
office web components with asp kathryne Classic ASP Professional 1 September 29th, 2003 09:50 PM
ASP with web components kathryne Classic ASP Basics 0 September 29th, 2003 09:39 AM
Creating Activex DLL components vbmo Classic ASP Components 11 June 30th, 2003 05:37 AM



All times are GMT -4. The time now is 02:16 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc