asp.net serial port

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?c2hpZg==?=

    asp.net serial port

    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
  • Smokey Grindel

    #2
    Re: asp.net serial port

    Why would you want to use a serial port from a web application?

    "shif" <ns_0001@hotmai l.comwrote in message
    news:490E4430-79A7-46E4-BB1D-1295ED29D8AF@mi crosoft.com...
    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

    Comment

    • Anthony P.

      #3
      Re: asp.net serial port

      On Apr 22, 7:00 am, shif <ns_0...@hotmai l.comwrote:
      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
      My first response would be 'you can't' because ASP.NET is primarily a
      server side language that doesn't have regular access to the clients
      machine hardware. But, my question is WHY would you need to access the
      serial port? There might be an easy way if we knew what you were
      wanting to do.

      Anthony

      Comment

      • =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=

        #4
        RE: asp.net serial port

        In server side code you would do this as you would with a stand alone. You
        would use the SerialPort class. There is a couple (at least) warnings
        though. Two users on your website might have trouble hitting the serial port
        at the same time. Permissions to the device on the other side of the port
        may be an issue as the website typically will use restricted permissions.

        "shif" wrote:
        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

        Comment

        • =?Utf-8?B?c2hpZg==?=

          #5
          Re: asp.net serial port

          Hi
          Actualy i want to capture the data from serial port of client machine.my
          need is that,i have a attendence program and a scanner is connected to the
          serail port(com port) of client pc,when the employee scans the card ,the data
          has to be capture into the textbox ,even if the cursor is not in the textbox.
          Thanks


          "Anthony P." wrote:
          On Apr 22, 7:00 am, shif <ns_0...@hotmai l.comwrote:
          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
          >
          My first response would be 'you can't' because ASP.NET is primarily a
          server side language that doesn't have regular access to the clients
          machine hardware. But, my question is WHY would you need to access the
          serial port? There might be an easy way if we knew what you were
          wanting to do.
          >
          Anthony
          >

          Comment

          • Dick Grier

            #6
            Re: asp.net serial port

            Hi,

            You can do this with an ActiveX control (NETComm.ocx from my homepage, for
            example), and JavaScript to access the control from code behind on the HTML
            page that hosts the control. I have example code in my book (very
            simplified) as a starting point. See below.

            Dick

            --
            Richard Grier, MVP
            Hard & Software
            Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
            Edition,
            ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
            2006.
            See www.hardandsoftware.net for details and contact information.


            Comment

            Working...