1
Answer

String Append in LINQ

vamssams

vamssams

15y
5.8k
1

hi,
Could any one please suggest a solution for the below scenario in LINQ.

string str = ",employeeName"; // suppose that employee name is a column in employee table.
var q = from e in employee
        select new { e.EmployeeID, str};
in that str place I need to get my column name, in other words I need to select columns based on the value in str.
Thanks in advance !!
Answers (1)
0
Sumit Jolly

Sumit Jolly

NA 18.7k 558.5k 10y
You need to change your setting 
<sessionstate mode="InProc" cookkieless="false"....

and your URL should remain intact. 

twitter @sumitjolly