471,086 Members | 1,185 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 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 7992
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by ^CeFoS^ | last post: by
3 posts views Thread by rusttree | last post: by
13 posts views Thread by Al the programmer | last post: by
1 post views Thread by henrycortezwu | last post: by
7 posts views Thread by davetelling | last post: by
2 posts views Thread by evle | last post: by
13 posts views Thread by Rob | last post: by
4 posts views Thread by Adrian Chen | last post: by

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.