I am using asp.net 2.0. I have a data table which contains int_TASK_ID as one of its column. I want to create string of all task IDs from data table rows without using loop on data table rows. Is there any way in asp.net 2.0?
1 Answer
NO. To achieve it without loops, you may need a query language. So you can do it with SQL but as you said you already have a data table, so NO. If it would be in .net 4.0, you could have done that with Linq.
In .net 2.0 without loops you can directly get string of all IDs from db itself by writing concat query to your db.
2.0without loops, this can be done usingLinq, for that you'll be requiredAsp.net 3.5...