string custype = ConfigurationManager.AppSettings["ProducerType"].ToString();
string query = "SELECT CODE ,DESC_E Description FROM S_MASTER WHERE CMP_CODE='A0' and loc_code='01' and DESC_E like '%" + val + "%' and subs_f='" + custype + "' order by 1";

Atul KumarRank #1,527 · 1K reputationPosted May 3, 2016, 4:06 AM EDT
Ravi PatelRank #439 · 5.7K reputationPosted May 3, 2016, 4:20 AM EDT