473,805 Members | 1,980 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting ActiveX Control Parameters Dynamically

I would like to be able to set parameter values for an
ActiveX control hosted on an ASP.NET .aspx page from a
C# code behind file. The ActiveX registration code is
contained in <OBJECT></OBJECT> tags hosted in the .aspx
file.
The control in question is a file viewer. I need to be
able to set the filename <PARAM NAME="Filename"
VALUE="filename .ext"> reference under the
<OBJECT></OBJECT> tags dynamically.

Questions:

1. What is the best way to accomplish this?
2. Can this be done without using javascript entirely in
C# codebehind? If so, what is the syntax?
3. I would like to use a user control to wrap the ActiveX
control, can you pass a parameter to an .ascx user
control for this purpose?
4. If none of this works, should I use Response.Write to
generate the entire HTML content or some other method to
return the actual html as
a part of the aspx page.
5. Can you suggest a code refernce showing an example of
how to accomplish this?

I've tried numerous approaches and I can't seem to get
anything working. The user control wrapper approach with
a passed parameter would
be best I think.

Thanks...
Nov 17 '05 #1
0 1965

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

Similar topics

1
3055
by: mjcast | last post by:
I have been working on an ActiveX control in C#. It is packaged in a Windows Control library and the code is in a user control. The control is used as an automation receiver that is used to update a page dynamically through the use of event listeners in javascript That works, the problem is that when I run the test webpage that runs the ActiveX control, the socket does not start listening for about a minute and a half, after which it runs fine....
2
2179
by: Kai I. H. | last post by:
Hi, I have an activeX control (programmed with c++) which is displayed in the Internet Explorer via the object tag. Now, as you probably know, you can pass parameters to the activeX control by using the param tag. My question now is, how do I get these parameters into my activeX control. I found hints about using IPropertyBag, but didn't find a good example on how to implement that. I even don't know whether this is the right way to...
1
1830
by: Development | last post by:
I want to add an ActiveX only if it exists on the system. (For licensing reasons). So I want to check at runtime if a certain ocx file exists and if it does I want to use it. Is it possible?
1
2373
by: Dan | last post by:
Good Day All, I am in the process of migrating a VB6 application to .NET using C#. The VB6 application has a bunch of ActiveX user controls that it load dynamically depending upon the situation at hand. I would like to be able to use these controls initially until I have the time to migrate them to .NET. I know I can add an ActiveX control to a WinForm during design time and it will generate a Com Interop wrapper for me and it works...
3
2331
by: fumihiko | last post by:
Hi, I created an activex control (C++), and it uses another COM dll (C++). This COM dll links with a static library that dose some calculation. (both are debug multithreaded dll) I created a C# client having activex control embedded at the very beginning (added in the design window); then, I created another same activex control at the runtime. After the 2nd activex control is created, I start to get errors on the function calls to the...
2
1528
by: Joel Denowski | last post by:
I was wondering if anyone knows how to set a web page that has a ContentType of "application/msword" to load with a page orientation of "landscape" instead of the default of "portrait". Thanks.
2
2006
by: Shawn | last post by:
Hi. I've never created an ActiveX control before, so I know little about what it is capable of and what its limitations are. My problem is this: I have to create a way to send multiple documents from the web server to a printer on the user's network. The way it works today the user has to manually download each document and send it to his printer, but now they want me to create an automated process. Will I be able to download documents...
6
11092
by: | last post by:
I have made some user controls with custom properties. I can set those properties on instances of my user controls, and I have programmed my user control to do useful visual things in response to how those properties are set. I want to be able to do two other things: a) add User control instances to my page, filling in the place of placeholder controls, and b) programmatically setting custom properties on those dynamically spawned...
3
2586
by: Supriya | last post by:
Hi All, How to add ActiveX Control to the web page. I added Object tag in the source html. Only ActiveX control is coming on the design. If I want to access the properties and manipulate them , I tried to create one Object ActiveXObject("Namespace.ClassName").But it is giving error that System cannot find the path specified. Please help me. Thanks in advance. Supriya.
0
9716
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, 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...
0
9596
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,...
0
10607
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, 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...
0
10359
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 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...
1
10364
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5541
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4317
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
2
3843
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.