Gautam Buddha Temple Varanasi,Varanasi - Buddhist Pilgrimage

Sunday, August 29, 2010

String Manupulation

i have a string like "a,b,c. upto n values"..
Show this string like
a,
b,
C

Sol
string str = "a,b,c";
string[] arr = str.Split(',');
foreach (string s in arr)
{
Response.Write(s + ",
");
}

No comments:

Post a Comment