I have a pretty simple question, but it makes my nut in !!!!
I created a variable that checks my data tables to see if an element exists using the page control identifier. IF this is me, then I want to warn my user that they have already chosen the color of the page!
My question is how to check if this variable is empty or not!
var qry = from x in db.DT_Control_ColourPalette_PageColors where x.PageControlID == int.Parse(HF_CPID.Value) select new { x.PageControlID, };
An argument that I think is right?
if (qry !=null)
source share