Sending Events to the Server

T

Trollpower

Greetings,

im totally new to ASP.Net, so i hope you can help me out here. Ive got
some ActiveX Controls, which work great with Windows Forms. Now i have
to do some work with ASP.Net, where i also have to use these Controls
again. Some of these Controls fire events, like a Scannercontrol, which
fires an event if it scanns something. So now i want to know how i can
hook to the events on the client side, so that i can react to them and
send updates to the WebApplication.

Any help is appreciated, thanks in advance

Jens
 
B

Bruce Barker

this would all be done in client script. pick up a book on javascript and IE
support. as it will require the users to trust your site to run unsafe
controls, you might want to write one .net control active/x control that is
the whole app (again you will have to work out the trust issues).

-- bruce (sqlwork.com)
 
J

Jens Meyer

Thanks Eliyahu for your reply.

A scanner is attached to the Client. It sends an event if it scanns
something, since it has some sort of autodetection. My problem here is,
how do i hook up this event and send the scanned image to the server to
put it into a Panel for example. As far as i understand the asp.net
stuff I dont have any application running on the client side where the
scanner ist attached to, beside the browser-window.

Maybe i have to describe the problem from an other point of view: How do
the server know that the scanner has scanned something and also can
update the shown website at the users browser window?

Again thank you very much for your patient...

Greetz

Jens
 
E

Eliyahu Goldin

Jens,

You need an ActiveX capable of sending scanned images to web sites over
http. I am using http://www.dynamsoft.com/WebTWAIN_Overview.html
The ActiveX produces an event when there is a new image from the scanner.
You have to write a small piece of javascript code that will handle the
event and call an http transfer function provided by the Activex. On server
side you will have to make a page that will accept images from client. The
client-side event handler will transfer images to this page.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top