473,568 Members | 2,795 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1427
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
7558
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...
12
2563
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
7116
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 are running MSIE6.x, woth security settings set to display this control. For the life of me, I cannot figure out how such a simple control can be...
3
2745
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
4382
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 ActiveX controls that are to be used by a pda need to be written in the ..net compact framework, or am i missing something else here? i have a HP iPaq...
4
6780
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 access it I have an InvalidActiveXState Exception. I cannot find mutch on the web about this Invalid State of a component except that it is...
6
3505
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 1.1 Configuration. I have also put a reference to the control on my ASP .NET project. The view that I get is only a disabled text area. Below is...
0
1329
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 "control.DrawToBitmap()". The result was a Bitmap showing the panel with all controls located on it, except the ActiveX controls. This is not a surprise because MSDN says...
4
2500
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 usual way? If yes, may you provide a hint/link for getting started? Best regards,
6
8031
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 .dll I can not call the functions in the ActiveX component. In the next step I tried to use the ActiveX component in a class library. I simply...
0
7693
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...
0
7916
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. ...
1
7660
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...
0
6275
agi2029
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...
1
5498
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2101
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
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
932
bsmnconsultancy
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...

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.