Thursday, August 21, 2008

C# - Split Sample


string _approvers = "allan;che;paul";

char[] delimiterChars = { ';' };
string[] arrVar = _approvers.Split(delimiterChars);

for(int x = 0; x < arrVar.Length; x++)
{
Response.Write(arrVar [x] );
}