473,761 Members | 7,710 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
4 3277
"Adrian Chen" <ao*******@126. comwrote in message
news:Od******** *****@TK2MSFTNG P06.phx.gbl...
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!!
Obviously - ASP.NET 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 have no chance whatsoever of doing this natively. All modern browsers
are designed specifically to prevent this sort of interaction with the
hardware / software on which the client browser is installed and running.

Your only option would be to use an ActiveX control. However, this would
restrict the browser to IE, and would mean that you will need to ramp the
browser security right down just to get it to work. I can't recommend this
at all.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 11 '08 #2
Hi,

"then I found that when uses click the button, it is the
server's serial port that starts to work,not the clients!! " ...

well asp.net code run all in server side...
client machine got only the htmls.. you need some kind of rich client
facility
like activex or flash...

Best of luck

-----------
Munna

www.munna.shatkotha.com/blog
www.munna.shatkotha.com
www.shatkotha.com
Jul 11 '08 #3
Mark Rae, thank you very much!

"Mark Rae [MVP]" <ma**@markNOSPA Mrae.net>
??????:uU****** ********@TK2MSF TNGP02.phx.gbl. ..
"Adrian Chen" <ao*******@126. comwrote in message
news:Od******** *****@TK2MSFTNG P06.phx.gbl...
>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!!

Obviously - ASP.NET 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 have no chance whatsoever of doing this natively. All modern browsers
are designed specifically to prevent this sort of interaction with the
hardware / software on which the client browser is installed and running.

Your only option would be to use an ActiveX control. However, this would
restrict the browser to IE, and would mean that you will need to ramp the
browser security right down just to get it to work. I can't recommend this
at all.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 11 '08 #4
Munna, thank you very much!

"Munna" <mu******@gmail .com>
??????:db****** *************** *************@b 1g2000hsg.googl egroups.com...
Hi,

"then I found that when uses click the button, it is the
server's serial port that starts to work,not the clients!! " ...

well asp.net code run all in server side...
client machine got only the htmls.. you need some kind of rich client
facility
like activex or flash...

Best of luck

-----------
Munna

www.munna.shatkotha.com/blog
www.munna.shatkotha.com
www.shatkotha.com

Jul 11 '08 #5

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

Similar topics

1
9902
by: Jamil | last post by:
I have a target box connected to my desktop (x86 Windows 2000) PC through a serial cable (COM port). The target box running on different processor and OS. The target box needs to send a specific formatted data (2 bytes header + 128 bytes data) asynchronously through the serial port and I've to capture it at the host PC side and save those into a file. I like to have the client-server model. The PC will be a server and start a forever...
7
10897
by: Will | last post by:
I'm working on a C# Windows Service that needs to monitor serial port communication. Because the .Net framework does not include support for serial communications, I've decided to use the Microsoft Communication Control (MSCommLib) that comes with Visual Studio 6. It seems easy to use and works well enough for me within the context of a Windows Application. Because I need the serial ports to be monitored 24/7, however, a Windows Service...
4
2724
by: leovg | last post by:
Can I access the serial port (RS232) out of an ASP.NET 2.0 client form? We are planning a barcode application where a barcode scanner delivers input to an ASP.NET form via RS232.
5
2341
by: Franklin M. Gauer III | last post by:
Hi All, I've written an ASP.NET application (webservice) that does simple serial communications via the .NET 2.0 SerialComm object. The application runs fine on my development machine. The problem is when we try to deploy it to another machine we receive: ACCESS IS DENIED TO COM1 PORT. We have tried unsuccessfully to get this to work. We have tried the following: 1) Assign the IUSR.... account to Administrators
7
5395
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 upon data received via the serial port. If I run the serial port in the main form code, I can get data and, using public properties of the user control, transfer the data to be shown on the graph. However, I am trying to add a feature that will...
13
6209
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 am sending a short message to a group of embedded boxes daisy chained via the serial port. When I send a 'global' message, all the connected units should reply with their Id and Ack in this format '0 Ack' To be certain that I didn't miss a...
4
15354
by: Soren | last post by:
Hi, I want to control some motors using the parallel port.. however, my laptop does not have any parallel ports (very few do). What I do have is a USB->Parallel converter... I thought about using PyParallel, but the USB->Parallel converter doesn't actually map to the LPT port .. and PyParallel only looks for LPT ports? Has anyone tried doing this? What are my options for controlling parallel connections on a laptop with no parallel...
5
1872
by: =?Utf-8?B?c2hpZg==?= | last post by:
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 -- Thanks
2
8288
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 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!! ...
0
9522
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9336
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10111
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8770
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7327
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6603
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
3446
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.