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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • 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!!!



  • Mark Rae [MVP]

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

    "Adrian Chen" <aoopopopo@126. comwrote in message
    news:OdlUy414IH A.408@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


    Comment

    • Munna

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

      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




      Comment

      • Adrian Chen

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

        Mark Rae, thank you very much!



        "Mark Rae [MVP]" <mark@markNOSPA Mrae.net>
        ??????:uUtIV$14 IHA.3828@TK2MSF TNGP02.phx.gbl. ..
        "Adrian Chen" <aoopopopo@126. comwrote in message
        news:OdlUy414IH A.408@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

        >

        Comment

        • Adrian Chen

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

          Munna, thank you very much!



          "Munna" <munnaonc@gmail .com>
          ??????:db3e5494-f452-4f6d-9ec8-098a7862dc18@b1 g2000hsg.google groups.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
          >



          >

          Comment

          Working...