dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: how to post magnatic stripe card reader data to aspx or ashx?

  1. #1
    Join Date
    Jul 2009
    Posts
    5

    how to post magnatic stripe card reader data to aspx or ashx?

    I am working on something that I have to first read the id number on a magnetic stripe card then post it to a login.aspx to login the website.
    what sorts of techniques can I use for achieving that?

    my first solution is (insecure)----:
    save the data in a file when swipe the card, then use ActiveX control in a Javascript to read the file on clinet machine, then post it to the login.aspx

    any better idea?

  2. #2
    Join Date
    Dec 2007
    Location
    Dayton, OH
    Posts
    390
    .aspx means .NET. Please ask this question in the .NET forum.

  3. #3
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    Stripe readers generally act like keyboards. The only real issue is dealing with carriages returns / newlines. The workaround can be something like a keylogging JavaScript (a Flash app or Java applet would work too). Just log the keystrokes until you hit your designated End-Of-Data marker or a pause in input significantly greater than that between "keystrokes" as configured in your reader.

    EDIT: And then, of course, stuff the logged keystrokes into a variable for an AJAX request or a form field for a synchronous request [or a form field for an AJAX request].

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles