title: Login doesn't work
body: <p>so, I'm trying to make a login form but I'm facing an error..
  It doesn't continue, it shows only no data (the error message I've put if the username or password is incorrect, even tho I;ve set them correct)</p>
  
  <p>this is my code</p>
  
  <pre><code>SqlConnection conn = new SqlConnection("Data Source=BRZAP\\MSSQLSERVERBTK; Initial Catalog=BrzAP; Integrated Security=True;");
  try
  {
      conn.Close();
      conn.Open();
      SqlCommand cmd = new SqlCommand(@"SELECT id,d_username,d_password FROM t_Login 
                              WHERE d_username=@usr AND 
                              d_password=@pw", conn);
      cmd.Parameters.AddWithValue("@usr", txtUID.ToString());
      cmd.Parameters.AddWithValue("@pw", txtP.ToString());
      SqlDataReader reader = cmd.ExecuteReader();
      if (reader.Read())
      {
         MessageBox.Show(reader["d_username"].ToString());
      }
      else
      {
          MessageBox.Show("no data");
      } 
  }
  catch (Exception ex)
  {
      MessageBox.Show(ex.Message.ToString());
      conn.Close();
  }
  finally
  {
      conn.Close();
  }
  </code></pre>
  
  <p>bellow is a pic of the data I have in sql. 
  <a href="https://i.stack.imgur.com/wBOuH.png" rel="nofollow noreferrer">pic with data</a></p>