asp.net serial port

S

shif

Hi
i am using asp.net.How can i send and recieve data from serial port.i have
not found any controls in toolbox.
please help
 
A

Anthony P.

Hi
i am using asp.net.How can i send and recieve data from serial port.i have
not found any controls in toolbox.
please help

My first response would be 'you can't' because ASP.NET is primarily a
server side language that doesn't have regular access to the clients
machine hardware. But, my question is WHY would you need to access the
serial port? There might be an easy way if we knew what you were
wanting to do.

Anthony
 
F

Family Tree Mike

In server side code you would do this as you would with a stand alone. You
would use the SerialPort class. There is a couple (at least) warnings
though. Two users on your website might have trouble hitting the serial port
at the same time. Permissions to the device on the other side of the port
may be an issue as the website typically will use restricted permissions.
 
S

shif

Hi
Actualy i want to capture the data from serial port of client machine.my
need is that,i have a attendence program and a scanner is connected to the
serail port(com port) of client pc,when the employee scans the card ,the data
has to be capture into the textbox ,even if the cursor is not in the textbox.
Thanks
 
D

Dick Grier

Hi,

You can do this with an ActiveX control (NETComm.ocx from my homepage, for
example), and JavaScript to access the control from code behind on the HTML
page that hosts the control. I have example code in my book (very
simplified) as a starting point. See below.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
T

tamby qunash

hi, i have the same problem
well what i am trying to do is i have a passport scanner, and we are trying to convert all of our project to online based applications, so no installation required on check in counter PC, the website that we did is huge, and all applications are on it, and now the thing is left that we have as i said a passport scanner that is connected to a com port.
to be honest, i dont know anything about ports, and all my work is on websites.

so the idea is we want the employee to access the website and they have that specific form waiting for them, we want them to scan the number and to be sent to a text box after that we will check all the data !
and dont worry the security level is so high :)
 
D

diego

hi, i have the same problem
well what i am trying to do is i have a passport scanner, and we are trying to convert all of our project to online based applications, so no installation required on check in counter PC, the website that we did is huge, and all applications are on it, and now the thing is left that we have as i said a passport scanner that is connected to a com port.
to be honest, i dont know anything about ports, and all my work is on websites.

so the idea is we want the employee to access the website and they have that specific form waiting for them, we want them to scan the number and to be sent to a text box after that we will check all the data !
and dont worry the security level is so high :)

You can install a windows app on the client pc that monitors the comm
port for incoming data and send these data as keystrokes. I have done
this but both my apps were window form apps. The important thing is
that your web app should always be focused on the correct textbox for
it to receive the keyboard input.

hth
 

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