Posted on: 8/4/2014 3:39:53 AM | Views : 465

Hi All
i am getting an error message and red line under: SelectCommand. And the error message is: 'System.Data.SqlClient.SqlConnection' does not contain a definition for 'SelectCommand' and no extension method 'SelectCommand' accepting a first argument of type 'System.Data.SqlClient.SqlConnection' could be found (are you missing a using directive or an assembly reference?) 
So please can some one tell me what the mistake i did and what i should do to fix it

protected void Sortcarbtn_Click(object sender, EventArgs e) { if (Session["location"] != null) { if (barndcardrlst.SelectedItem.Value != null) { using (SqlConnection Carsortcon = new SqlConnection(cs)) { Carsortcon.Open(); SqlDataAdapter carsortsda = new SqlDataAdapter(@"SELECT ...

Go to the complete details ...