commandtext = "SELECT * FROM TABLENAME WHERE 1=1 and 1=1 and 1=1
commandtext = SELECT * FROM TABLENAME WHERE 1=1 and columnvalue = combobox value and 1=1
commandtext = "Select * From TableName Where columnvalue = '" + combobox.value + "'";
commandstring = "SELECT * FROM TABLENAME WHERE 1=1 and 1="
"and 1=1 " with "and value = '"+combobox.value+"' "
if(combobox1.text!=""){ here i want to replace and 1=1}if(combobox2.text!=""){ here also i want to replace second 1=1 with "and value= '"+combobox.value+"'}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)