473,394 Members | 1,828 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.

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 1946

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

Similar topics

1
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...
2
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...
1
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
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...
3
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...
2
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
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...
6
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.