can someone please explain this to me
private string get_filter_sql(String table_name, String[,] matfilter)
{
int arr_cnt = matfilter.GetUpperBound(0);
string query = "";
string ctlName = "";
string defValue = "";
for (int i = 0; i <= arr_cnt; i++)
{
ctlName = "sch_" + matfilter.GetValue(i, 0);
if (Request.Cookies[table_name + "_sch_" + ctlName] != null)
defValue = Request.Cookies[table_name + "_sch_" + ctlName].Value;
if (Request.Form[ctlName] != null)
defValue = Request.Form[ctlName];
if (defValue.Trim() != "")
{
switch (matfilter.GetValue(i, 2).ToString().ToUpper())
{
case "LT":
query = query + " and " + matfilter.GetValue(i, 0) + " LIKE '%" + defValue + "%'";
break;
case "ET": ...
Go to the complete details ...