473,848 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ActiveX control to enable in Toolbox in ASP.Net

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 2238

ActiveX controls work "differentl y" on web pages than they do in Windows

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

classid="clsid: 99999999-9999-9999-9999-999999999999"
CODEBASE="http://www.mysite.com/MyControl.cab#v ersion=-1,-1,-1,-1">
The classid parameter is the GUID for the specific control you need to
create. The CODEBASE parameter indicates where the control can be installed

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

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.


Rob MacFadyen

"Jayender" <ja*********@gm ail.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
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

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 the VB program on that same machine, I can view the ActiveX control fine. He is using Citrix. The same ActiveX controls can be viewed on other machines. When trying to view 1 of the ActiveX control, he got an error "Visual Basic Run-time redist...
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. Using Visual Studio 2005 I add the control to my Toolbox. I then drag the control onto a Panel control that is on a form. That is it. I don't write any code at all. When I run the program I get the following error:
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
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 they all seem to say either nothing about this or that this is "out of the scope of this book", even "Professional ASP.NET". I have a ActiveX component that I'd like to expose through a .NET wrapper so in the case that a client browses to my...
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 use the interop dll transformed with aximp.exe from the ocx, I can't insert it into the tool box. who can tell me what to do? Thanks a lot!
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 control to pallete and then add a reference. I get the interop dll added to bin folder. I did this with the MediaPlayer activex control as a simple case to to try and get it working. I set the control to autostart via the html parameter tag for...
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 not load into the toolbox. I suspect I am missing something fundamental. Note that I tried to add to the Vs2005 toolbox both with the original legacy control registered and not registered. In neither case would it load. Because we do not have...
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 with ActiveX controls.
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 question), and points out that ActiveX control is a pure client-side control, the server-side code cannot access this control (for your second question). Server-side code can access only server controls, which are the controls that are listed on the Web...
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.