hi,
thanks friends for Chart reply,im done with my issues.
I have some issue on Linq
Below is my Linq Query
var test = from a in db.Results
where a.ROLL == rollNo
select new { a.sub1,a.sub2,a.sub3};
i want to take the result of this query either in an string array or in separate string variables.
I have tried this but giving me error.
string sub1= test.Select(tt => tt.sub1)--
Error:cannot implicitly convert type int? to bool.
string sub2= test.Select(tt => tt.sub2)
and also
string[] marks = test.Select(rr => rr.sub1);--Cannot implicitly convert type 'System.Linq.IQueryable<int?>' to 'string[]'
Please guide how can i do this.