var spravy= db.QuerySingle(" SELECT * FROM Messages WHERE ToUserID=@0 AND State='2'",WebSecurity.CurrentUserId); if(spravy.ExecuteScalar()!=null) { spravy="(1)"; }
If (db.querysingle(blah blah ) !- null) { spravy = blah; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)