need help for using selected item from listview as a variable on sql query
think there is a problem at last line anybody have idea for that:)
SqlConnection cnn = new SqlConnection(tools.ConnectionString);
var cmd = new SqlCommand("select EmployeeId,BirthDate from Employees where
FirstName = @name ",cnn);
cmd.Parameters.AddWithValue("@name", listView1.SelectedItems );
thanks:)
No comments:
Post a Comment