private void StoreLastFilterValue()
{
Hashtable filterCriteria = (Hashtable)Session["filterCriteria"];
filterCriteria.Remove(H_Name.Value);
String[] selValues = H_Value.Value.Split(',');
string csv = string.Empty;
switch (H_TYPE.Value)
{
case "T":
if (textname.Text != "")
{
filterCriteria.Add(H_Name.Value, " LIKE '" + textname.Text.Trim() + "%'");
}
break;
case "N":
if ((textfrm.Text.Trim() != "") && (textto.Text.Trim() != ""))
{
filterCriteria.Add(H_Name.Value, " BETWEEN " + textfrm.Text.Trim() + " AND " + textto.Text.Trim());
}
else if (textfrm.Text.Trim() != "")
{
filterCriteria.Add(H_Name.Value, " >= " + (textfrm.Text.Trim()));
}
else if (textto.Text.Trim() != "")
{
filterCriteria.Add(H_Name.Value, " <= " + textto.Text.Trim());
}
break;
default:
break;
}
Session["filterCriteria"] = filterCriteria;
})
after a click event on page postback happens with the above code executed first then a code for getting certain field values from databse & display controls
how much amount of time shld it ideally take for the above process
for me it takes around 20 secs to this to happen