473,398 Members | 2,120 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,398 software developers and data experts.

ActiveX controls and ASP.Net

I have a custom written ActiveX Control (written in VC++ 7 unmanaged) that
is embedded on a web page, I need to be able to send events (like button
click and toolbar clicks) from the ActiveX Control (clients side) to ASP.Net
(server side)

Can this be done? If so any clues on what to search on?

Thanks,
Weston Fryatt
Dec 21 '05 #1
3 1414
Hi Weston,

As your ActiveX control is running client-side in the browser, you're
crossing the client-server border with what you're trying to do, so this
becomes a complex issue.

It would help to understand what you're trying to achive, as (odd as
this may sound) I think you're going the wrong way about what you're doing.

The only reason you would have your ActiveX control communicate with IIS
(the asp.net application server) is to load a new page, so you would
change the browser's window.location.href attribute. Using this method,
you could pass information along the querystring. Bear in mind that your
ActiveX applet will get unloaded, and a new page will load. Even if it's
the same page you call, your applet will go through an uninit and init
events (basically, it gets restarted). This may or may not be what you
want, but it's quite a clunky way to do things.

Cheers,
Mark

Weston Fryatt wrote:
I have a custom written ActiveX Control (written in VC++ 7 unmanaged) that
is embedded on a web page, I need to be able to send events (like button
click and toolbar clicks) from the ActiveX Control (clients side) to ASP.Net
(server side)

Can this be done? If so any clues on what to search on?

Thanks,
Weston Fryatt

Dec 22 '05 #2
Thanks Mark...
It would help to understand what you're trying to achive, as (odd as this
may sound) I think you're going the wrong way about what you're doing.


I work in Document Imaging, and I have been tasked to write a highly custom
Image Viewer and Document Scanning control. So far I have the Image Viewer
part working, where I can send any image format (TIF, JPG, DICOM, and about
40 another image formats) from my server side and have it securitly
displayed in the viewr control. The next step is to do the reverse, To Scan
a Image and send it back to the server side??? But I just don't know how I
can pass the data back?

I have thought about a WebService, But I don't think that would work because
I wouldn't know one sessions data from the other??
Thanks again,
Weston Fryatt

Dec 22 '05 #3
Hi Westdon,

That's an interesting design problem. Since you're definitely wanting to
send a big chunk of data back to the server, you may indeed want to do a
post back to the server after all. Perhaps one way to do this would be
to have a form with a small set of hidden input fields on your page.
When you're ready to post your scanned image back to the server, your
embedded control could uuencode (or base64) the image and put it into
one of the hidden fields. You can use other fields as needed for the
image's attributes (e.g. name, format, owner, whatever else you like to
store). Then post the form. On the server side, you would uudecode the
image and do what you want with it.

If you've already cosidered this option, I'd be interested in hearing
what problems you've run up against.

Cheers,
Mark

Weston Fryatt wrote:
Thanks Mark...
It would help to understand what you're trying to achive, as (odd as this
may sound) I think you're going the wrong way about what you're doing.


I work in Document Imaging, and I have been tasked to write a highly custom
Image Viewer and Document Scanning control. So far I have the Image Viewer
part working, where I can send any image format (TIF, JPG, DICOM, and about
40 another image formats) from my server side and have it securitly
displayed in the viewr control. The next step is to do the reverse, To Scan
a Image and send it back to the server side??? But I just don't know how I
can pass the data back?

I have thought about a WebService, But I don't think that would work because
I wouldn't know one sessions data from the other??
Thanks again,
Weston Fryatt



Dec 23 '05 #4

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...
12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
0
by: Ike | last post by:
I have an Activex Control created in VB6, which, displays no problem on any machine I have, but, on some machines of others, it does not. All machines are running either XP or Windows 2000, and all...
3
by: DB | last post by:
Hi Folks, I want to create Activex component. Can we create it using c#.net or do I need to create it using vc++? Thanks in Advanced, Deepak
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do...
4
by: Wilfried Mestdagh | last post by:
Hi, I have a C# application (VS2005) with Microsoft Mappoint activeX control on a form. At a certain moment I want to create a second one temporary in code. This seems not to work, when I try to...
6
by: Budhi Saputra Prasetya | last post by:
Hi All, I'm trying to display .NET Custom Control (created using Inherited Control) on an ASPX page, but no luck. I already registered the Control to Global Assembly Cache through .NET Framework...
0
by: Christian Nein | last post by:
Hello, does anybody have experiences with screenshots of ActiveX controls in .NET? I have a panel containing some controls, amongst others some ActiveX controls. I tried ...
4
by: Henrik Dahl | last post by:
Hello! Is it possible to use Visual Studio 2005 or, secondarily, Visual Studio .NET 2003 to create ActiveX controls which may be consumed by VB 6.0 programs, i.e. dealt with on forms in the...
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.