You might have received dump because the query result does not have any instances.
before using query result you should check the number of returns in query results
use
if(qm_res.Count()>0){
try the way Srivats has explained
}
Thanks
Sunil
You might have received dump because the query result does not have any instances.
before using query result you should check the number of returns in query results
use
if(qm_res.Count()>0){
try the way Srivats has explained
}
Thanks
Sunil