string attr = string.Empty;
for (int i = 1; i <= dtattr.Rows.Count - 1; i++)
{
attr += "
}
output showing
i want this
Thanks in Advance.
String Problem
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Nov 5, 2012, 8:42 PM EST
string attr = string.Empty;
for (int i = 1; i <= dtattr.Rows.Count - 1; i++)
{
attr += "" + i + "'), 1);'>Add Item
}