string strFilter= " 0=0 "; if (Session["SampleSession"] != null) { strFilter= strFilter+ " and EmpName = '" + Session["SampleSession"].ToString() + "'"; } dv.RowFilter = strFilter; // Throws an error here!
string strFilter= @" 0=0 "; if (Session["SampleSession"] != null) { strFilter= strFilter+ @" and EmpName = '" + Session["SampleSession"].ToString() + "' "; }
'Operator Name'
strFilter
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)