I'm not sure I fully understand how that relates or the whole context, but this function returns in <br/> delimited form, every 2nd entry in a string of the form 1;#m1,2;#m2,3;#m3...
public string SplitMethods(string strMethods)
{
string returnedMethods = "";
string[] parts = strMethods.Split(new char[] { ';',',','#' }, StringSplitOptions.RemoveEmptyEntries);
for(int x=1; x<parts.Length; x+=2) {
returnedMethods += parts[x] + "<br/>";
}
return returnedMethods;
}