i want the right code for this one
i need to display listbox items one by one with coma (,) but the last item i have
to keep it without coma ....
for (i = 0; i <= listBox1.Items. Count; i++)
{
if (i == listBox1.Items. Count - 1)
{
url += listBox1.Items[i].ToString() ;
}
else
url += listBox1.Items[i].ToString() + ",";
}
thanks
i need to display listbox items one by one with coma (,) but the last item i have
to keep it without coma ....
for (i = 0; i <= listBox1.Items. Count; i++)
{
if (i == listBox1.Items. Count - 1)
{
url += listBox1.Items[i].ToString() ;
}
else
url += listBox1.Items[i].ToString() + ",";
}
thanks
Comment