char[] name = dr["name"].tostring().tochararray(); int i = 0,j=name.

length; string main = ""; foreach (char s in name) { if (i == 0 || s==' ') { main = main + s.tostring().toupper(); i++; if (s == ' ') { main = main + name[i].tostring().toupper(); } else { } i++;

if (i < j) { main = main = main + name[i].tostring(); } i++; } }

Sign up to vote on this title
UsefulNot useful