title: How to get/display the user-information after logging in. ASP.net C#
body: <p>I am implementing an online voting system for my school-project.</p>
  
  <p>After the voter's log-in, i want to display their name, and ID in the label control at the content body. I try to use SESSION to store the voter's username in the log-in page but I'm not sure of my syntax because nothings happen.</p>
  
  <p>I want to know the other way of retrieving a data from database! Please teach me.</p>
  
  <pre><code>public void GetInformation()
  {
  
      OleDbCommand cmd = new OleDbCommand();
      cmd.Connection = connection;
      cmd.CommandText = "SELECT * FROM tblUsers WHERE voter_name = '" + Session["VotersID"] + "'";
      OleDbDataReader reader = cmd.ExecuteReader();
      if(reader.Read())
      {
          lblVoterName.Text = reader["usr_FirstN"].ToString() + " " + reader["usr_LastN"].ToString();
      }
  
  }
  </code></pre>
  
  <p>Please Help Me. Thanks! -</p>