|
|
 |
| 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.
|
 |

December 5th, 2003, 11:50 AM
|
|
Registered User
|
|
Join Date: Dec 2003
Location: Miami, FL, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

December 7th, 2003, 01:07 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

December 8th, 2003, 10:33 AM
|
|
Registered User
|
|
Join Date: Dec 2003
Location: Miami, FL, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

December 8th, 2003, 03:55 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I am not sure about within .Net, but you can access the properties of an ActiveX control using a client-side script.
J
|

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
|
|
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
|

April 18th, 2005, 09:32 AM
|
 |
Friend of Wrox
Points: 16,368, Level: 55 |
|
|
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |