1
Answer

How to Fect Data From the serial port(Com1) in asp.net

Photo of JIgnesh Patel

JIgnesh Patel

10y
792
1
Hello Friends 
 
                        I want asp.net code for fetching the data from the serial port like com1 i have the code but that code is not works so i want code which is purely executable
 

Answers (1)

0
Photo of Wim Sturkenboom
NA 2.9k 1.6k 10y
The answer to your question depends on the answer to the question "what are you trying to read"? The serial port on a (web)server or the serial port on a (web)client? Code for the server or for the client? Reading a serial port on the server is definitely possible, reading the serial port on the client can be done as well (but not directly as the browser runs in a sandboxed environment as far as I know).

Please note that "but that code is not works" means nothing. If you want serious help, you have to indicate what's wrong. Does it not compile, does it not read, does it throw runtime exceptions, ..... If it does not read, it might mean that you want to read from the client and you downloaded code for the server; we can not say.

Please clarify and others might be able to help (I'm probably not the one to be able to help).