title: Extracting data from RFID reader
body: <p>i m working with a canteen management project (in a company). i would like to authenticate users through their ID Cards when put on a Rfid reader. I have surfed several sites but they are not upto what i want.
  My problem is , i am not able to extract the serial number from the ID cards put on the Rfid reader. Anyone. plz help me with this.. i m working with visual studio 2012 (windows application) and the language i am using is C#.
  My code is as follows:</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      RFID = new SerialPort();
      RFID.PortName = "COM1";
      RFID.BaudRate = 9600;
      RFID.DataBits = 8;
      RFID.Parity = Parity.None;
      RFID.StopBits = StopBits.One;
      RFID.Handshake = Handshake.None;
  
      RFID.Open();
      RFID.DtrEnable = true;
  
      RFID.DataReceived += new SerialDataReceivedEventHandler(RFID_DataReceived);
  }
  private void RFID_DataReceived(object sender, SerialDataReceivedEventArgs e)
  {
      String data = RFID.ReadExisting();
      label8.Text += data;
  }
  </code></pre>