473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ActiveX control to enable in Toolbox in ASP.Net

Hi,
I have an ActiveX control (to display the Images),I have added the
reference of that in my web based applicaton .and added the ocx in my
tool bar , but the viewer (activex component- ocx ) is disabled , but i
tried this in Window based application, and it works great , but i need
to do it in Web based applicaion , is there anything i need to add for
making that to enable so that i can drag and place it in my web form ?

waiting for ur reply,

Sep 7 '06 #1
1 2210
Jayender,

ActiveX controls work "differently" on web pages than they do in Windows
applications.

There are several things you need to be concerned about:
- how will the control be installed on the user's PC?
- how will upgrades to the control be handled (bug fixes)?
- how will non-IE browsers be handled (eg. firefox)?
- how will the control get its data?
- Will we code sign the control (you really really should)?

The raw mechanics of including a control:
<OBJECT ID=MyControl classid="clsid:99999999-9999-9999-9999-999999999999">
<PARAM NAME="x" VALUE="5">
</OBJECT>

or
<object
ID=MyControl
classid="clsid:99999999-9999-9999-9999-999999999999"
CODEBASE="http://www.mysite.com/MyControl.cab#version=-1,-1,-1,-1">
<PARAM NAME="x" VALUE="5">
</object>
The classid parameter is the GUID for the specific control you need to
create. The CODEBASE parameter indicates where the control can be installed
from.

Also note that IE has change the rules on how controls are activated. You
may have seen "click here or press space bar to activate this control"
messages. This is fall out from the Eolas lawsuit. These can be worked
around, but generally requires the control to be created via JavaScript.

And... I don't know for sure so this is a guess... but I don't think VS.NET
HTML editor supports automatically inserting <OBJECTtags for ActiveX
controls. In the past I just fired up FrontPage to do the initial insert
(more or less identify the CLSID guid for me)... but I bet you could do this
with the OLEView tool as well (or just by poking around in the registery).

A nice example site for handling the initial installation, tracking, and
updating of an ActiveX control is the MSN Money site. They have a very nice
portfolio manager/stock graphing tool that is deployed as an ActiveX
control.

Also note that end users must be members of at least the Power Users local
group to be allowed to install ActiveX controls. And debugging what has gone
wrong with an ActiveX install can be very very challenging.

Regards,

Rob MacFadyen


"Jayender" <ja*********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi,
I have an ActiveX control (to display the Images),I have added the
reference of that in my web based applicaton .and added the ocx in my
tool bar , but the viewer (activex component- ocx ) is disabled , but i
tried this in Window based application, and it works great , but i need
to do it in Web based applicaion , is there anything i need to add for
making that to enable so that i can drag and place it in my web form ?

waiting for ur reply,

Sep 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fie Fie Niles | last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX controls (created on VB6) on the Internet Explorer browser. I put the same ActiveX control in a VB program, and when I run...
5
by: Dan | last post by:
Good Day All, I am having a problem in Visual Studio 2005 Beta 2. I am hoping someone might have an idea as to what is going on. I have an ActiveX User Control written using Visual Basic 6.0....
7
by: Jacky Luk | last post by:
Does anyone know of a downloadable Line ActiveX control which allows me to plot straight lines on a VC++.NET form? Thanks Jack
1
by: Mehr H | last post by:
I have been working on this for several days and am still have had no success in achieving this. Pleae help. It seems that documentation for this is very limited. I have looked in several books and...
4
by: FanTian | last post by:
I want to insert an ActiveX control into asp .net web page, but it seems I fall in trouble now. When I insert the ocx control into toolbox and drag it to the web page, I can't get its ID. and if I...
3
by: Jeffery Franzen | last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms? I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app. I do the add...
2
by: John Olbert | last post by:
I am trying to use the utility tlbimp to add old ActiveX controls and Ocx's to the Toolbox of Vs2005. I tried to apply the the tlbimp to both the Tlb or Dll or Ocx files. The resulting Dll would...
1
by: Remote_User | last post by:
Hi, I am using C# as the code-behing language in ASP.NET and trying to put in ActiveX control in the web page. Could you provide me a suggestion on this as good start up ? Trying to get familiar...
1
by: Jialiang Ge [MSFT] | last post by:
Hello Philippe, In addition to bruce's points, I'd suggest the KB article http://support.microsoft.com/kb/317392. It demonstrates how to host an ActiveX control in ASP.NET (for your first...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.