p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 December 5th, 2003, 11:50 AM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Miami, FL, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Activex controls in asp.net

Hello All:
I need to use an activex control in a web application that I am designing. I've read that I can go two ways:
1. I can add a reference, which creates a wrapper, and then I can instantiate objects dynamically using the wrapper. In this case the control will be running in the server.
2. I can add the activex using the toolbox of the .net visual studio designer. This creates an object tag in html. In this case the control will run in the client side.
How do I instantiate the object in the second case? Do I have to use a script language like java script? Can anybody provide me with an example?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old December 7th, 2003, 01:07 AM
Friend of Wrox
Points: 1,173, Level: 13
Points: 1,173, Level: 13 Points: 1,173, Level: 13 Points: 1,173, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If all you want to do is use your ActiveX control in a web page then just add the following line:

<OBJECT ID="Object1" CLASSID="CLSID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" CODEBASE="OCX_Name.OCX"></OBJECT>

The ClassID you can find by doing a search in the registry by searching for the name of your OCX file. Copy and paste that value in the spot where you see the all of the x's above.

The Codebase tag specifies where the OCX file is located in relation to your page. This is for machines that are connecting to your site so their system knows where to download the file.

Hope this helps and is what you are looking for.

J
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old December 8th, 2003, 10:33 AM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Miami, FL, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I can get that line also by using the designer in asp.net, but then I don't know how to refer to the object. The obvious would be to use object id, but that doesn't work from a code behind page. My question is if I must use a script that runs on the client. In that case I would need to learn how to do client scripts. Right now my only exposure to the web world has being using code behind pages in asp.net.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old December 8th, 2003, 03:55 PM
Friend of Wrox
Points: 1,173, Level: 13
Points: 1,173, Level: 13 Points: 1,173, Level: 13 Points: 1,173, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am not sure about within .Net, but you can access the properties of an ActiveX control using a client-side script.

J
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old April 18th, 2005, 07:28 AM
Registered User
 
Join Date: Apr 2005
Location: sdk, punjab, Pakistan.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ranaaamir80 Send a message via AIM to ranaaamir80 Send a message via MSN to ranaaamir80 Send a message via Yahoo to ranaaamir80
Default

hello, can any body help me,i have a problem of using COM components in asp.net ? plz send me the complete procedure so that i can use COM components in asp.net page.

          plz send me complete detail.

amir
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #6 (permalink)  
Old April 18th, 2005, 09:32 AM
planoie's Avatar
Friend of Wrox
Points: 16,368, Level: 55
Points: 16,368, Level: 55 Points: 16,368, Level: 55 Points: 16,368, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
Default

amir,

Is this a new question involving COM components in ASP.NET (vs. in the client)?

Can you provide some details about how you are working with the application? Are you using VS.NET?

-Peter
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
Cannot create ActiveX component in asp.net 2.0 Thorgal ASP.NET 2.0 Professional 1 December 14th, 2007 12:17 AM
asp.net with crystal activex viewer NagarajuK Crystal Reports 0 November 22nd, 2007 10:17 AM
"activex invalid" in asp.net songyonggang ASP.NET 2.0 Basics 0 June 9th, 2006 11:32 PM
How can I include ActiveX in ASP.Net? Kristinn ASP.NET 1.1 2 February 1st, 2005 04:45 AM
ActiveX DLL From VB6 in ASP.Net soccers_guy10 ASP.NET 1.1 1 December 8th, 2004 05:50 AM



All times are GMT -4. The time now is 04:21 AM.


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