Hello guys,
I am asking a very simple thing to be done in my project (May be I've forgotten the syntax).........
I've taken a drop-down list in which diff. user-names are coming and added a delete button to delete the full row which contains the selected drop-down list user-name.
I've written the code as............
SqlConnection con2 = new SqlConnection(ConfigurationManager.ConnectionStrings["KMCon"].ToString());
SqlCommand cmd2 = new SqlCommand("delete * from Info where Username=[B]???????[/B], con2);
con2.Open();
cmd2.ExecuteNonQuery();
con2.Close();
What and how should be the syntax to write in the ???????
Thanks in advance........