Quote:SqlDataAdapter myadp = new SqlDataAdapter(); myadp.SelectCommand = new SqlCommand(); myadp.SelectCommand.Connection = con; con.Open(); myadp.SelectCommand.CommandText = "select * from shantanu where Id=@un and password=@ps"; myadp.SelectCommand.Parameters.AddWithValue("@un", TextBox1.Text); myadp.SelectCommand.Parameters.AddWithValue("@ps", TextBox2.Text); SqlDataReader mydr; mydr = myadp.SelectCommand.ExecuteReader(); Quote:con.Close();
Quote:con.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)