Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

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

Reply
 
Old 07-11-2008   #1 (permalink)
Adrian Chen


 
 

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!!!





My System SpecsSystem Spec
Old 07-11-2008   #2 (permalink)
Jeroen Mostert


 
 

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

Adrian Chen wrote:
Quote:

> Now I develop a finger print management system which is based on B/S.
Unfortunately, many real-world systems are based on BS...
Quote:

> 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.
Quote:

> 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.
My System SpecsSystem Spec
Old 07-11-2008   #3 (permalink)
Adrian Chen


 
 

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

Jeroen Mostert, thank you very much!


"Jeroen Mostert" <jmostert@xxxxxx>
??????:48776ac5$0$14345$e4fe514c@xxxxxx
Quote:

> Adrian Chen wrote:
Quote:

>> Now I develop a finger print management system which is based on B/S.
>
> Unfortunately, many real-world systems are based on BS...
>
Quote:

>> 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.
>
Quote:

>> 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.
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
usb-to-serial port cleanup Vista hardware & devices
Serial Port Vista General
serial port adapter Vista hardware & devices
a Unknown Serial Port Vista hardware & devices
USB to 9-pin serial port Vista hardware & devices


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46