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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.