I am trying to pass values from a database table to a couple of labels where the email column matches the email entered.I have passed the email entered from login page to th
Try like this instead
SqlCommand cmd = new SqlCommand("Select * from tblRegister where Email = @Email", con); cmd.Parameters.AddWithValue("@Email", lblEmail.Text); SqlDataReader rdr = cmd.ExecuteReader(); //...