Hello,
I am following this example of Combobox in Radgrid.
I am having a problem with this part of the code behind: WHERE CompanyName LIKE @CompanyName + '%'"
protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
string sql = "SELECT [SupplierID], [CompanyName], [ContactName], [City] FROM [Suppliers] WHERE CompanyName LIKE @CompanyName + '%'";
SqlDataAdapter adapter = new SqlDataAdapter(sql,
ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString);
adapter.SelectCommand.Parameters.AddWithValue("@CompanyName", e.Text);
I use Mysql and not Sql Server, and it seems that it does not accept + '%'"
How can I replace that to state "contains"?
Thank you