472,809 Members | 2,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,809 software developers and data experts.

how to control serial port of client in asp.net??

please help me! I come across a problem.
Now I develop a finger print management system which is based on B/S.When
users click a button in the web pages, a device connected to the COM1 serial
port of the client machine starts to work.
Now I wrote the code which is in charge of serial communication in the
..aspx.cx pages, but then I found that when uses click the button, it is the
server's serial port that starts to work,not the clients!!

who can tell me how I could control the serial port communication in client
through asp.net?

I am very nervous about it now!

Thank you very much!!!


Jul 11 '08 #1
2 8160
Adrian Chen wrote:
Now I develop a finger print management system which is based on B/S.
Unfortunately, many real-world systems are based on BS...
When users click a button in the web pages, a device connected to the
COM1 serial port of the client machine starts to work. Now I wrote the
code which is in charge of serial communication in the .aspx.cx pages,
but then I found that when uses click the button, it is the server's
serial port that starts to work,not the clients!!
Yes, that's the general idea. Except for generated client-side script,
ASP.NET code runs on the server, not the client.
who can tell me how I could control the serial port communication in client
through asp.net?
You can't, at least not directly. You need a client-side application for
this, not a web page. You could deploy one through ClickOnce, for example.

You could alternatively repackage your code as an ActiveX control and use
that from the web page. This requires the use of IE and probably lowered
security settings.

A third alternative would be to use an off-the-shelf ActiveX control for
serial communication, but I don't think this is worth it as opposed to
repackaging your own code (which is easy enough to do). One possible
advantage is that the off-the-shelf code will probably not need the .NET
runtime.

--
J.
Jul 11 '08 #2
Jeroen Mostert, thank you very much!
"Jeroen Mostert" <jm******@xs4all.nl>
??????:48***********************@news.xs4all.nl...
Adrian Chen wrote:
>Now I develop a finger print management system which is based on B/S.

Unfortunately, many real-world systems are based on BS...
>When users click a button in the web pages, a device connected to the
COM1 serial port of the client machine starts to work. Now I wrote the
code which is in charge of serial communication in the .aspx.cx pages,
but then I found that when uses click the button, it is the server's
serial port that starts to work,not the clients!!
Yes, that's the general idea. Except for generated client-side script,
ASP.NET code runs on the server, not the client.
>who can tell me how I could control the serial port communication in
client through asp.net?
You can't, at least not directly. You need a client-side application for
this, not a web page. You could deploy one through ClickOnce, for example.

You could alternatively repackage your code as an ActiveX control and use
that from the web page. This requires the use of IE and probably lowered
security settings.

A third alternative would be to use an off-the-shelf ActiveX control for
serial communication, but I don't think this is worth it as opposed to
repackaging your own code (which is easy enough to do). One possible
advantage is that the off-the-shelf code will probably not need the .NET
runtime.

--
J.

Jul 11 '08 #3

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

Similar topics

4
by: ^CeFoS^ | last post by:
Hello to everybody, I've done an application that draws in a frame the trajectory of a robot. The robot position is readed through the serial port, and several commands are wrote through the...
3
by: rusttree | last post by:
Many moons ago, I took a class in embedded control at school. The course focused on a micro-controller mounted on a small electric car that was programmed using simple C code. The...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
4
by: joe bloggs | last post by:
I am writing a mobile application to interface with a legacy system and I am planning to use web services to communicate with this system. The legacy system receives data through a serial port. ...
1
by: henrycortezwu | last post by:
Hi All, I'm trying to connect to a virtual port (COM19, OUTGOING, "Bluetooth Serial Port") using VS2005 System.IO.Ports. When I ran the ff code below here's what happens. 1) VS2005 Compiles w/o...
7
by: davetelling | last post by:
I'm a newbie that is still struggling with OOP concepts & how to make things work they way I want. Using Visual C# Express, I have a form in which I added a user control to display a graph, based...
2
by: evle | last post by:
haw to read data from an Infrared Infrared Remote Control
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
4
by: Adrian Chen | last post by:
please help me! I come across a problem. Now I develop a finger print management system which is based on B/S.When users click a button in the web pages, a device connected to the COM1 serial port...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.